From 045542c14567842973d25800062765ef5b91e405 Mon Sep 17 00:00:00 2001 From: Chris Hofstaedtler Date: Sun, 12 Nov 2023 20:29:39 +0100 Subject: [PATCH] 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. --- grml-debootstrap | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) 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 -- 2.1.4