From mboxrd@z Thu Jan 1 00:00:00 1970 From: Harald Hoyer Subject: Re: [PATCH 4/4] 95fcoe-uefi: Test for EFI firmware Date: Tue, 02 Jun 2015 12:25:23 +0200 Message-ID: <556D8493.2020203@redhat.com> References: <1427127138-12932-1-git-send-email-trenn@suse.de> <1427127138-12932-5-git-send-email-trenn@suse.de> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1427127138-12932-5-git-send-email-trenn-l3A5Bk7waGM@public.gmane.org> Sender: initramfs-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: Content-Type: text/plain; charset="us-ascii" To: Thomas Renninger Cc: initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Hannes Reinecke On 23.03.2015 17:12, Thomas Renninger wrote: > From: Hannes Reinecke > > 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 > --- > modules.d/95fcoe-uefi/module-setup.sh | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/modules.d/95fcoe-uefi/module-setup.sh b/modules.d/95fcoe-uefi/module-setup.sh > index 8b8c810..5d8477c 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 > } > pushed, thanks