diff options
author | Lyndon Brown <jnqnfe@gmail.com> | 2020-03-11 23:04:49 +0000 |
---|---|---|
committer | Luca Boccassi <bluca@debian.org> | 2020-03-12 09:59:44 +0000 |
commit | 9930ce1ea542516dabdce9ce9b2bb297b437483a (patch) | |
tree | 89d3004c5c6c5a0927d3a04799d5635ce5027c13 /scripts/build/binary_grub-efi | |
parent | a9d8aac959d362fb3ca9882b829fff66ef01f2bc (diff) | |
download | vyos-live-build-9930ce1ea542516dabdce9ce9b2bb297b437483a.tar.gz vyos-live-build-9930ce1ea542516dabdce9ce9b2bb297b437483a.zip |
grub-efi: fix image type check ordering
this should take place before working on efi related stuff
Gbp-Dch: Short
Diffstat (limited to 'scripts/build/binary_grub-efi')
-rwxr-xr-x | scripts/build/binary_grub-efi | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/scripts/build/binary_grub-efi b/scripts/build/binary_grub-efi index e819c9d65..1eaea3fb5 100755 --- a/scripts/build/binary_grub-efi +++ b/scripts/build/binary_grub-efi @@ -41,6 +41,15 @@ Create_lockfile .lock Check_architectures amd64 i386 arm64 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) @@ -106,15 +115,6 @@ case "${LB_UEFI_SECURE_BOOT}" in esac _LB_PACKAGES="${_PRE_SB_PACKAGES}" -# 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 - # Restoring cache Restore_package_cache binary |