grub-efi: fix image type check ordering

this should take place before working on efi related stuff

Gbp-Dch: Short
This commit is contained in:
Lyndon Brown 2020-03-11 23:04:49 +00:00 committed by Luca Boccassi
parent a9d8aac959
commit 9930ce1ea5
1 changed files with 9 additions and 9 deletions

View File

@ -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