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:
parent
a9d8aac959
commit
9930ce1ea5
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue