summaryrefslogtreecommitdiff
path: root/scripts/build/binary_grub-pc
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/build/binary_grub-pc')
-rwxr-xr-xscripts/build/binary_grub-pc13
1 files changed, 4 insertions, 9 deletions
diff --git a/scripts/build/binary_grub-pc b/scripts/build/binary_grub-pc
index 4549d3b41..85074a486 100755
--- a/scripts/build/binary_grub-pc
+++ b/scripts/build/binary_grub-pc
@@ -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-pc"
Echo_message "Begin installing grub-pc..."
@@ -47,15 +51,6 @@ Restore_package_cache binary
# Installing depends
Install_package
-# 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
-
# Copying templates
mkdir -p binary/boot/grub/i386-pc