summaryrefslogtreecommitdiffstats
path: root/0003-fcoe-wait-for-lldpad-to-be-ready.patch
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2014-04-02 10:03:51 +0200
committerHarald Hoyer <harald@redhat.com>2014-04-02 10:03:51 +0200
commit05e06999006445b876d62159f68d9bbf25241b8b (patch)
tree838d61592ef45884a547bf37dcd68abb1ef9e755 /0003-fcoe-wait-for-lldpad-to-be-ready.patch
parent76b7b864229309cddffdcc774d4aae83d36f1794 (diff)
downloaddracut-05e06999006445b876d62159f68d9bbf25241b8b.tar.gz
dracut-05e06999006445b876d62159f68d9bbf25241b8b.tar.xz
dracut-05e06999006445b876d62159f68d9bbf25241b8b.zip
dracut-037-10.git20140402
- fixed fstab.sys with systemd - DHCPv6 fixes - dm-cache module now included - FCoE fixes
Diffstat (limited to '0003-fcoe-wait-for-lldpad-to-be-ready.patch')
-rw-r--r--0003-fcoe-wait-for-lldpad-to-be-ready.patch44
1 files changed, 44 insertions, 0 deletions
diff --git a/0003-fcoe-wait-for-lldpad-to-be-ready.patch b/0003-fcoe-wait-for-lldpad-to-be-ready.patch
new file mode 100644
index 0000000..614caab
--- /dev/null
+++ b/0003-fcoe-wait-for-lldpad-to-be-ready.patch
@@ -0,0 +1,44 @@
+From 3aaf6ccc837d7e16fa8c0c259d107832a578ff89 Mon Sep 17 00:00:00 2001
+From: Harald Hoyer <harald@redhat.com>
+Date: Tue, 25 Mar 2014 15:28:19 +0100
+Subject: [PATCH] fcoe: wait for lldpad to be ready
+
+---
+ modules.d/95fcoe/fcoe-up.sh | 10 ++++++++--
+ modules.d/95fcoe/module-setup.sh | 2 +-
+ 2 files changed, 9 insertions(+), 3 deletions(-)
+
+diff --git a/modules.d/95fcoe/fcoe-up.sh b/modules.d/95fcoe/fcoe-up.sh
+index 511c554..dd45358 100755
+--- a/modules.d/95fcoe/fcoe-up.sh
++++ b/modules.d/95fcoe/fcoe-up.sh
+@@ -28,8 +28,14 @@ if [ "$dcb" = "dcb" ]; then
+ # are to kill it and start a new lldpad to take over. Data is transfered
+ # between the 2 using a shm segment
+ lldpad -d
+- # stupid tools, need sleep
+- sleep 1
++ # wait for lldpad to be ready
++ i=0
++ while [ $i -lt 60 ]; do
++ lldptool -p && break
++ info "Waiting for lldpad to be ready"
++ sleep 1
++ i=$(($i+1))
++ done
+ dcbtool sc "$netif" dcb on
+ sleep 1
+ dcbtool sc "$netif" app:fcoe e:1 a:1 w:1
+diff --git a/modules.d/95fcoe/module-setup.sh b/modules.d/95fcoe/module-setup.sh
+index c502ba0..9a52c00 100755
+--- a/modules.d/95fcoe/module-setup.sh
++++ b/modules.d/95fcoe/module-setup.sh
+@@ -21,7 +21,7 @@ installkernel() {
+
+ # called by dracut
+ install() {
+- inst_multiple ip dcbtool fipvlan lldpad readlink
++ inst_multiple ip dcbtool fipvlan lldpad readlink lldptool
+
+ mkdir -m 0755 -p "$initdir/var/lib/lldpad"
+