File 0067-95fcoe-check-always-returns-255.patch of Package dracut.608

From c6cadbd3ea9abf5dd92172c27e1f06611d5a0185 Mon Sep 17 00:00:00 2001
From: Hannes Reinecke <hare@suse.de>
Date: Mon, 16 Jun 2014 14:08:38 +0200
Subject: 95fcoe: check() always returns 255

There is a typo in the 'check' function in module_setup.sh, causing
it always to return 255.

Signed-off-by: Hannes Reinecke <hare@suse.de>
---
 modules.d/95fcoe/module-setup.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules.d/95fcoe/module-setup.sh b/modules.d/95fcoe/module-setup.sh
index 7abfb01..57d5c1e 100755
--- a/modules.d/95fcoe/module-setup.sh
+++ b/modules.d/95fcoe/module-setup.sh
@@ -46,9 +46,9 @@ check() {
     [[ $hostonly ]] || [[ $mount_needs ]] && {
         for c in /sys/bus/fcoe/devices/ctlr_* ; do
             [ -L $c ] || continue
-            break;
+            fcoe_ctlr=$c
         done
-        return 255
+        [ -z "$fcoe_ctlr" ] && return 255
     }
 
     require_binaries dcbtool fipvlan lldpad ip readlink || return 1
-- 
1.8.4.5

openSUSE Build Service is sponsored by