Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arch Linux
archiso
Commits
d2315bc9
Verified
Commit
d2315bc9
authored
Aug 24, 2021
by
nl6720
Browse files
mkarchiso: error out of iso and netboot build modes if no boot modes are specified
parent
f3959d6e
Changes
1
Hide whitespace changes
Inline
Side-by-side
archiso/mkarchiso
View file @
d2315bc9
...
@@ -804,6 +804,10 @@ _validate_common_requirements_buildmode_iso_netboot() {
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment