[PATCH blivet rhel7-branch] fcoe: add sleep for dcbtool command (#1039223)

Radek Vykydal rvykydal at redhat.com
Fri Mar 14 08:55:20 UTC 2014


Related: rhbz#1039223

Do it as dracut.
---
 blivet/fcoe.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/blivet/fcoe.py b/blivet/fcoe.py
index e7e8fef..42d7550 100644
--- a/blivet/fcoe.py
+++ b/blivet/fcoe.py
@@ -121,9 +121,12 @@ class fcoe(object):
         error_msg = ""
         if dcb:
             self._startLldpad()
+            time.sleep(1)
             util.run_program(["dcbtool", "sc", nic, "dcb", "on"])
+            time.sleep(1)
             util.run_program(["dcbtool", "sc", nic, "app:fcoe",
                                                 "e:1", "a:1", "w:1"])
+            time.sleep(1)
             rc, out = util.run_program_and_capture_output(["fipvlan", "-c", "-s", "-f",
                                                "-fcoe", nic])
         else:
-- 
1.7.11.7



More information about the anaconda-patches mailing list