Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archiso
diff options
context:
space:
mode:
authornl6720 <nl6720@gmail.com>2021-08-24 21:16:42 +0300
committernl6720 <nl6720@gmail.com>2021-08-25 00:29:35 +0300
commitd2315bc98d1e5c07e9d88247d0ad8259677fbac8 (patch)
treec0e42f2db01c39d9a4ccc978a926348737bda7f7 /archiso
parentf3959d6ef054af629d162052fd42f3d9fb2512dd (diff)
mkarchiso: error out of iso and netboot build modes if no boot modes are specified
Diffstat (limited to 'archiso')
-rwxr-xr-xarchiso/mkarchiso4
1 files changed, 4 insertions, 0 deletions
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