Merge remote-tracking branch 'origin/pr/239'
authorMichael Prokop <mika@grml.org>
Fri, 17 Nov 2023 16:07:38 +0000 (17:07 +0100)
committerMichael Prokop <mika@grml.org>
Fri, 17 Nov 2023 16:07:38 +0000 (17:07 +0100)
grml-debootstrap

index 8d9e1db..0489c52 100755 (executable)
@@ -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