summaryrefslogtreecommitdiff
path: root/scripts/build/binary_grub-legacy
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/build/binary_grub-legacy')
-rwxr-xr-xscripts/build/binary_grub-legacy27
1 files changed, 10 insertions, 17 deletions
diff --git a/scripts/build/binary_grub-legacy b/scripts/build/binary_grub-legacy
index 39e59d437..7891bba65 100755
--- a/scripts/build/binary_grub-legacy
+++ b/scripts/build/binary_grub-legacy
@@ -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_First_Bootloader_Role "grub-legacy"
Echo_message "Begin installing grub-legacy..."
@@ -103,27 +107,16 @@ case "${LB_INITRAMFS}" in
esac
# Setting destination directory
-case "${LIVE_IMAGE_TYPE}" in
- iso|iso-hybrid|tar)
- case "${LB_INITRAMFS}" in
- live-boot)
- DESTDIR_LIVE="binary/live"
- ;;
-
- *)
- DESTDIR_LIVE="binary/boot"
- ;;
- esac
-
- DESTDIR_INSTALL="binary/install"
+case "${LB_INITRAMFS}" in
+ live-boot)
+ DESTDIR_LIVE="binary/live"
;;
- 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
+ *)
+ DESTDIR_LIVE="binary/boot"
;;
esac
+DESTDIR_INSTALL="binary/install"
# Creating directory
mkdir -p "${DESTDIR_LIVE}"