Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
alpine
alpine-conf
Commits
a2b37fea
Commit
a2b37fea
authored
Jul 01, 2022
by
Natanael Copa
Browse files
setup-disk: exit if either mode or disk is 'none'
parent
4ad15542
Changes
2
Hide whitespace changes
Inline
Side-by-side
setup-disk.in
View file @
a2b37fea
...
...
@@ -1468,7 +1468,9 @@ while getopts "hek:Lm:o:qrs:v" opt; do
done
shift
$((
$OPTIND
-
1
))
[
"
$DISK_MODE
"
=
"none"
]
&&
exit
0
if
[
"
$DISK_MODE
"
=
"none"
]
||
[
"
$1
"
=
"none"
]
;
then
exit
0
fi
if
is_rpi
;
then
:
${
BOOTLOADER
:
=raspberrypi-bootloader
}
...
...
tests/setup_disk_test
View file @
a2b37fea
...
...
@@ -2,15 +2,23 @@
.
$(
atf_get_srcdir
)
/test_env.sh
init_tests
\
setup_disk_usage
setup_disk_usage
\
setup_disk_mode_none
\
setup_disk_none
\
setup_disk_usage_body
()
{
test_usage setup-disk
}
setup_disk_
usag
e_body
()
{
setup_disk_
mode_non
e_body
()
{
init_env
atf_check
-s
exit
:0
\
setup-disk
-m
none
}
setup_disk_none_body
()
{
init_env
atf_check
-s
exit
:0
\
setup-disk none
}
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