|
|
18971c |
From 69c437dd1c3b877f60ced307068e01619124fef4 Mon Sep 17 00:00:00 2001
|
|
|
18971c |
From: Harald Hoyer <harald@redhat.com>
|
|
|
18971c |
Date: Tue, 18 Aug 2015 12:27:32 +0200
|
|
|
18971c |
Subject: [PATCH] fcoe: cleanup lldpad
|
|
|
18971c |
|
|
|
18971c |
Resolves: rhbz#1246217
|
|
|
18971c |
---
|
|
|
18971c |
modules.d/95fcoe/cleanup-fcoe.sh | 10 ++++++++++
|
|
|
18971c |
modules.d/95fcoe/module-setup.sh | 1 +
|
|
|
18971c |
2 files changed, 11 insertions(+)
|
|
|
18971c |
create mode 100644 modules.d/95fcoe/cleanup-fcoe.sh
|
|
|
18971c |
|
|
|
18971c |
diff --git a/modules.d/95fcoe/cleanup-fcoe.sh b/modules.d/95fcoe/cleanup-fcoe.sh
|
|
|
18971c |
new file mode 100644
|
|
|
18971c |
index 00000000..5ff4d054
|
|
|
18971c |
--- /dev/null
|
|
|
18971c |
+++ b/modules.d/95fcoe/cleanup-fcoe.sh
|
|
|
18971c |
@@ -0,0 +1,10 @@
|
|
|
18971c |
+#!/bin/sh
|
|
|
18971c |
+# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
|
|
|
18971c |
+# ex: ts=8 sw=4 sts=4 et filetype=sh
|
|
|
18971c |
+
|
|
|
18971c |
+if [ -e /var/run/lldpad.pid ]; then
|
|
|
18971c |
+ lldpad -k
|
|
|
18971c |
+ mkdir -m 0755 -p /run/initramfs/state/dev/shm
|
|
|
18971c |
+ cp /dev/shm/lldpad.state /run/initramfs/state/dev/shm/ > /dev/null 2>&1
|
|
|
18971c |
+ echo "files /dev/shm/lldpad.state" >> /run/initramfs/rwtab
|
|
|
18971c |
+fi
|
|
|
18971c |
diff --git a/modules.d/95fcoe/module-setup.sh b/modules.d/95fcoe/module-setup.sh
|
|
|
18971c |
index ec573ea0..646cfa84 100755
|
|
|
18971c |
--- a/modules.d/95fcoe/module-setup.sh
|
|
|
18971c |
+++ b/modules.d/95fcoe/module-setup.sh
|
|
|
18971c |
@@ -28,6 +28,7 @@ install() {
|
|
|
18971c |
inst "$moddir/fcoe-edd.sh" "/sbin/fcoe-edd"
|
|
|
18971c |
inst "$moddir/fcoe-genrules.sh" "/sbin/fcoe-genrules.sh"
|
|
|
18971c |
inst_hook cmdline 99 "$moddir/parse-fcoe.sh"
|
|
|
18971c |
+ inst_hook cleanup 90 "$moddir/cleanup-fcoe.sh"
|
|
|
18971c |
dracut_need_initqueue
|
|
|
18971c |
}
|
|
|
18971c |
|