]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fcoe: check if needed for hostonly
authorHarald Hoyer <harald@redhat.com>
Wed, 29 Jun 2016 08:49:00 +0000 (10:49 +0200)
committerHarald Hoyer <harald@redhat.com>
Thu, 14 Jul 2016 11:57:21 +0000 (13:57 +0200)
(cherry picked from commit f45726652fd8c6fd6b5560e1142753bac62dc426)

modules.d/95fcoe-uefi/module-setup.sh
modules.d/95fcoe/module-setup.sh

index 5d8477caf32be4ef4d5ec2c83369d610264f135c..c9ff3c2f122bd3bfcf48a6abc83577e6d4e3323f 100755 (executable)
@@ -2,6 +2,14 @@
 
 # called by dracut
 check() {
+    local _fcoe_ctlr
+    [[ $hostonly ]] || [[ $mount_needs ]] && {
+        for c in /sys/bus/fcoe/devices/ctlr_* ; do
+            [ -L $c ] || continue
+            _fcoe_ctlr=$c
+        done
+        [ -z "$_fcoe_ctlr" ] && return 255
+    }
     [[ $hostonly ]] || [[ $mount_needs ]] && {
         [ -d /sys/firmware/efi ] || return 255
     }
index 059bfde3dcdacf0f2bc219f5920414ce96fbfb7a..531ea0d79b5c87a4cdf8859d1eb59046631da280 100755 (executable)
@@ -2,12 +2,13 @@
 
 # called by dracut
 check() {
+    local _fcoe_ctlr
     [[ $hostonly ]] || [[ $mount_needs ]] && {
         for c in /sys/bus/fcoe/devices/ctlr_* ; do
             [ -L $c ] || continue
-            fcoe_ctlr=$c
+            _fcoe_ctlr=$c
         done
-        [ -z "$fcoe_ctlr" ] && return 255
+        [ -z "$_fcoe_ctlr" ] && return 255
     }
 
     require_binaries dcbtool fipvlan lldpad ip readlink fcoemon fcoeadm || return 1