X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=grml-debootstrap;h=0489c52228223913c421bad9d2efa15905427df0;hb=d275bdfe5ba2b9abcf67687311110ae2dc5ac90f;hp=8d9e1dbc21126c4e577b8808d44a3155f2430519;hpb=c5357622163341d7364f38d6d2e675e933dcb157;p=grml-debootstrap.git diff --git a/grml-debootstrap b/grml-debootstrap index 8d9e1db..0489c52 100755 --- a/grml-debootstrap +++ b/grml-debootstrap @@ -1029,14 +1029,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