mkarchiso: error out of iso and netboot build modes if no boot modes are specified

This commit is contained in:
nl6720 2021-08-24 21:16:42 +03:00
parent f3959d6ef0
commit d2315bc98d
No known key found for this signature in database
GPG Key ID: 5CE88535E188D369

View File

@ -804,6 +804,10 @@ _validate_common_requirements_buildmode_iso_netboot() {
fi fi
# Check if the specified bootmodes are supported # Check if the specified bootmodes are supported
if (( ${#bootmodes[@]} < 1 )); then
(( validation_error=validation_error+1 ))
_msg_error "No boot modes specified in '${profile}/profiledef.sh'." 0
fi
for bootmode in "${bootmodes[@]}"; do for bootmode in "${bootmodes[@]}"; do
if typeset -f "_make_bootmode_${bootmode}" &> /dev/null; then if typeset -f "_make_bootmode_${bootmode}" &> /dev/null; then
if typeset -f "_validate_requirements_bootmode_${bootmode}" &> /dev/null; then if typeset -f "_validate_requirements_bootmode_${bootmode}" &> /dev/null; then