From 554a8d11088181e666a04558230e94b19f32f2d6 Mon Sep 17 00:00:00 2001 From: Lyndon Brown Date: Sat, 28 Mar 2020 08:17:28 +0000 Subject: tidy up grub bootloader compatibility checking - add a validation check where an error will be printed - replace the check done in the grub scripts with one that simple exits if executed bypassing the validation check Gbp-Dch: Short --- scripts/build/binary_grub-efi | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'scripts/build/binary_grub-efi') diff --git a/scripts/build/binary_grub-efi b/scripts/build/binary_grub-efi index 90e25e4fb..d1a9ff91d 100755 --- a/scripts/build/binary_grub-efi +++ b/scripts/build/binary_grub-efi @@ -21,6 +21,10 @@ USAGE="${PROGRAM} [--force]" # Processing arguments and configuration files Init_config_data "${@}" +if In_list "${LIVE_IMAGE_TYPE}" hdd netboot; then + exit 0 +fi + Check_Any_Bootloader_Role "grub-efi" Echo_message "Begin preparing Grub based EFI support..." @@ -38,15 +42,6 @@ Acquire_lockfile Check_architectures amd64 i386 arm64 armhf Check_crossarchitectures -# Setting destination directory -case "${LIVE_IMAGE_TYPE}" in - hdd|netboot) - Echo_warning "Bootloader in this image type not yet supported by live-build." - Echo_error "This would produce a not bootable image, aborting (FIXME)." - exit 1 - ;; -esac - # Checking depends case "${LB_ARCHITECTURES}" in amd64|i386) -- cgit v1.2.3