summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShaRose <ShawnAndrewRose@Gmail.Com>2022-06-17 00:39:19 -0230
committerNatanael Copa <ncopa@alpinelinux.org>2022-06-28 11:58:26 +0000
commitd3c17328e22697de193f52bbcf0eb28bbaff65d4 (patch)
tree819d819743f5c623aa92f086d1fb06d6728b8144
parent1e333bd4e7da27ecb795d68ae752eff4db402ae0 (diff)
downloadalpine-conf-d3c17328e22697de193f52bbcf0eb28bbaff65d4.zip
setup-disk: Die if diskless
If you pass -m none, just return immediately: For non-interactive diskless setups.
-rw-r--r--setup-disk.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/setup-disk.in b/setup-disk.in
index 1af717a..f9306c0 100644
--- a/setup-disk.in
+++ b/setup-disk.in
@@ -1468,6 +1468,8 @@ while getopts "hek:Lm:o:qrs:v" opt; do
done
shift $(( $OPTIND - 1))
+[ "$DISK_MODE" = "none" ] && exit 0
+
if is_rpi; then
: ${BOOTLOADER:=raspberrypi-bootloader}
BOOTFS=vfat