OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/dracut?expand=0&rev=139
35 lines
1.1 KiB
Diff
35 lines
1.1 KiB
Diff
From c5fd4748ecff45dfaf707af30b649153ae88ea20 Mon Sep 17 00:00:00 2001
|
|
From: Fabian Vogt <fvogt@suse.com>
|
|
Date: Tue, 27 Sep 2016 12:41:17 +0200
|
|
Subject: 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.
|
|
---
|
|
modules.d/95fcoe-uefi/module-setup.sh | 5 +++++
|
|
1 file changed, 5 insertions(+)
|
|
|
|
diff --git a/modules.d/95fcoe-uefi/module-setup.sh b/modules.d/95fcoe-uefi/module-setup.sh
|
|
index 5d8477c..66af804 100755
|
|
--- a/modules.d/95fcoe-uefi/module-setup.sh
|
|
+++ b/modules.d/95fcoe-uefi/module-setup.sh
|
|
@@ -4,6 +4,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
|
|
--
|
|
2.6.6
|
|
|