Blame 0015-fcoe-no-need-to-copy-lldpad-state.patch
|
Harald Hoyer |
7ba020 |
From e93ff1cf9aac8f97131b3101a5da240ce5f45239 Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
7ba020 |
From: Harald Hoyer <harald@redhat.com>
|
|
Harald Hoyer |
7ba020 |
Date: Thu, 7 Jan 2016 10:44:31 +0100
|
|
Harald Hoyer |
7ba020 |
Subject: [PATCH] fcoe: no need to copy lldpad state
|
|
Harald Hoyer |
7ba020 |
|
|
Harald Hoyer |
7ba020 |
/dev/shm should be available later on by the normal switch root bind mount.
|
|
Harald Hoyer |
7ba020 |
---
|
|
Harald Hoyer |
7ba020 |
modules.d/95fcoe/cleanup-fcoe.sh | 9 ++++-----
|
|
Harald Hoyer |
7ba020 |
1 file changed, 4 insertions(+), 5 deletions(-)
|
|
Harald Hoyer |
7ba020 |
|
|
Harald Hoyer |
7ba020 |
diff --git a/modules.d/95fcoe/cleanup-fcoe.sh b/modules.d/95fcoe/cleanup-fcoe.sh
|
|
Harald Hoyer |
7ba020 |
index 5ff4d05..856e2d9 100644
|
|
Harald Hoyer |
7ba020 |
--- a/modules.d/95fcoe/cleanup-fcoe.sh
|
|
Harald Hoyer |
7ba020 |
+++ b/modules.d/95fcoe/cleanup-fcoe.sh
|
|
Harald Hoyer |
7ba020 |
@@ -2,9 +2,8 @@
|
|
Harald Hoyer |
7ba020 |
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
|
|
Harald Hoyer |
7ba020 |
# ex: ts=8 sw=4 sts=4 et filetype=sh
|
|
Harald Hoyer |
7ba020 |
|
|
Harald Hoyer |
7ba020 |
-if [ -e /var/run/lldpad.pid ]; then
|
|
Harald Hoyer |
7ba020 |
- lldpad -k
|
|
Harald Hoyer |
7ba020 |
- mkdir -m 0755 -p /run/initramfs/state/dev/shm
|
|
Harald Hoyer |
7ba020 |
- cp /dev/shm/lldpad.state /run/initramfs/state/dev/shm/ > /dev/null 2>&1
|
|
Harald Hoyer |
7ba020 |
- echo "files /dev/shm/lldpad.state" >> /run/initramfs/rwtab
|
|
Harald Hoyer |
7ba020 |
+if [ -z "$DRACUT_SYSTEMD" ]; then
|
|
Harald Hoyer |
7ba020 |
+ if [ -e /var/run/lldpad.pid ]; then
|
|
Harald Hoyer |
7ba020 |
+ lldpad -k
|
|
Harald Hoyer |
7ba020 |
+ fi
|
|
Harald Hoyer |
7ba020 |
fi
|