From d2315bc98d1e5c07e9d88247d0ad8259677fbac8 Mon Sep 17 00:00:00 2001 From: nl6720 Date: Tue, 24 Aug 2021 21:16:42 +0300 Subject: mkarchiso: error out of iso and netboot build modes if no boot modes are specified --- archiso/mkarchiso | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'archiso') diff --git a/archiso/mkarchiso b/archiso/mkarchiso index fb601c3..6181af2 100755 --- a/archiso/mkarchiso +++ b/archiso/mkarchiso @@ -804,6 +804,10 @@ _validate_common_requirements_buildmode_iso_netboot() { fi # 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 if typeset -f "_make_bootmode_${bootmode}" &> /dev/null; then if typeset -f "_validate_requirements_bootmode_${bootmode}" &> /dev/null; then -- cgit v1.2.3-70-g09d2