X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=grml-debootstrap;h=5ee3e5a2b0c015a70b27454ef48f368a5ca73282;hb=045542c14567842973d25800062765ef5b91e405;hp=00ce3631ae6bb751de543806d05f3024215863b2;hpb=89f05ac9ca3438d0080a5c3878f5caf93da04e58;p=grml-debootstrap.git 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