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