Commit ee7608c2 authored by Natanael Copa's avatar Natanael Copa

setup-disk: explain that no disks was found unless -q (quiet)

parent 67e75982
......@@ -698,11 +698,12 @@ esac
SWAP_SIZE=$(find_swap_size)
# Parse args
while getopts "hk:o:rs:v" opt; do
while getopts "hk:o:qrs:v" opt; do
case $opt in
k) KERNEL_FLAVOR="$OPTARG";;
r) USE_RAID=1;;
o) APKOVL="$OPTARG";;
q) QUIET=1;;
r) USE_RAID=1;;
s) SWAP_SIZE="$OPTARG";;
v) VERBOSE=1;;
*) usage;;
......@@ -730,7 +731,10 @@ disks=$(find_disks)
disk=none
# no disks so lets exit quietly.
[ -z "$disks" ] && exit 0
if [ -z "$disks" ]; then
[ -z "$QUIET" ] && echo "No disks found." >&2
exit 0
fi
if [ $# -gt 0 ]; then
# check that they are
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment