From: Chris Hofstaedtler Date: Sun, 12 Nov 2023 19:29:39 +0000 (+0100) Subject: Skip EFI support check if --vm is given X-Git-Tag: v0.105~7^2 X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=commitdiff_plain;h=045542c14567842973d25800062765ef5b91e405 Skip EFI support check if --vm is given Hosts EFI support is unlikely to be related to the VMs EFI support, so this check often only adds noise. --- diff --git a/grml-debootstrap b/grml-debootstrap index 00ce363..5ee3e5a 100755 --- a/grml-debootstrap +++ b/grml-debootstrap @@ -1034,14 +1034,16 @@ efi_support() { checkconfiguration() { -if efi_support ; then - if [ -z "$_opt_efi" ] ; then - ewarn "EFI support detected but no --efi option given, please consider enabling it." - fi -else - if [ -n "$_opt_efi" ] ; then - eerror "EFI option used but no EFI support detected." - bailout 1 +if [ -z "$VIRTUAL" ] ; then + if efi_support ; then + if [ -z "$_opt_efi" ] ; then + ewarn "EFI support detected but no --efi option given, please consider enabling it." + fi + else + if [ -n "$_opt_efi" ] ; then + eerror "EFI option used but no EFI support detected." + bailout 1 + fi fi fi