From: Fabian Vogt Date: Tue, 27 Sep 2016 10:41:17 +0000 (+0200) Subject: fcoe-uefi: Add check for usage X-Git-Tag: 047~63^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F326%2Fhead;p=thirdparty%2Fdracut.git 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. --- diff --git a/modules.d/95fcoe-uefi/module-setup.sh b/modules.d/95fcoe-uefi/module-setup.sh index c9ff3c2f1..a464df5a0 100755 --- a/modules.d/95fcoe-uefi/module-setup.sh +++ b/modules.d/95fcoe-uefi/module-setup.sh @@ -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