Browse Source

fcoe: check if needed for hostonly

(cherry picked from commit f45726652f)
master
Harald Hoyer 9 years ago
parent
commit
5a3773dbe6
  1. 8
      modules.d/95fcoe-uefi/module-setup.sh
  2. 5
      modules.d/95fcoe/module-setup.sh

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

@ -2,6 +2,14 @@ @@ -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
}

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

@ -2,12 +2,13 @@ @@ -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

Loading…
Cancel
Save