Browse Source

fcoe-uefi: Add check for usage

References: boo#965477

fcoe-uefi gets included by default on EFI systems,
as it does not do the same check that fcoe does,
therefore needlessly pulling in network modules.
This patch copies the check from fcoe to fcoe-uefi.
master
Fabian Vogt 9 years ago committed by Daniel Molkentin
parent
commit
22836a0921
  1. 5
      modules.d/95fcoe-uefi/module-setup.sh

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

@ -12,6 +12,11 @@ check() { @@ -12,6 +12,11 @@ check() {
}
[[ $hostonly ]] || [[ $mount_needs ]] && {
[ -d /sys/firmware/efi ] || return 255
for c in /sys/bus/fcoe/devices/ctlr_* ; do
[ -L $c ] || continue
fcoe_ctlr=$c
done
[ -z "$fcoe_ctlr" ] && return 255
}
require_binaries dcbtool fipvlan lldpad ip readlink || return 1
return 0

Loading…
Cancel
Save