From: Hannes Reinecke Date: Mon, 23 Mar 2015 16:12:18 +0000 (+0100) Subject: 95fcoe-uefi: Test for EFI firmware X-Git-Tag: 042~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6755c208556be7a85c76e731de48a56f56e81c4c;p=thirdparty%2Fdracut.git 95fcoe-uefi: Test for EFI firmware The fcoe-uefi module should test for EFI firmware when called in 'hostonly' mode; of no EFI firmware is found then the module doesn't need to be included. References: bnc#882412 Signed-off-by: Hannes Reinecke Signed-off-by: Thomas Renninger --- diff --git a/modules.d/95fcoe-uefi/module-setup.sh b/modules.d/95fcoe-uefi/module-setup.sh index 8b8c810da..5d8477caf 100755 --- a/modules.d/95fcoe-uefi/module-setup.sh +++ b/modules.d/95fcoe-uefi/module-setup.sh @@ -2,6 +2,9 @@ # called by dracut check() { + [[ $hostonly ]] || [[ $mount_needs ]] && { + [ -d /sys/firmware/efi ] || return 255 + } require_binaries dcbtool fipvlan lldpad ip readlink || return 1 return 0 }