Re: [PATCH 4/4] 95fcoe-uefi: Test for EFI firmware

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 23.03.2015 17:12, Thomas Renninger wrote:
> From: Hannes Reinecke <hare@xxxxxxx>
> 
> 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 <hare@xxxxxxx>
> Signed-off-by: Thomas Renninger <trenn@xxxxxxx>
> ---
>  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
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux