summaryrefslogtreecommitdiff
path: root/functions/configuration.sh
diff options
context:
space:
mode:
Diffstat (limited to 'functions/configuration.sh')
-rwxr-xr-xfunctions/configuration.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/functions/configuration.sh b/functions/configuration.sh
index 5826ab2c3..be12f2173 100755
--- a/functions/configuration.sh
+++ b/functions/configuration.sh
@@ -617,6 +617,13 @@ Validate_config ()
fi
fi
+ if In_list "grub-pc" ${LB_BOOTLOADERS} || In_list "grub-efi" ${LB_BOOTLOADERS} || In_list "grub-legacy" ${LB_BOOTLOADERS}; then
+ if In_list "${LIVE_IMAGE_TYPE}" hdd netboot; then
+ Echo_error "You have selected an invalid combination of bootloaders and live image type; the grub-* bootloaders are not compatible with hdd and netboot types."
+ exit 1
+ fi
+ fi
+
if ! In_list "${LIVE_IMAGE_TYPE}" iso iso-hybrid hdd tar netboot; then
Echo_error "You have specified an invalid value for --binary-image."
exit 1