diff options
-rw-r--r-- | setup-alpine.in | 4 | ||||
-rw-r--r-- | setup-disk.in | 5 |
2 files changed, 6 insertions, 3 deletions
diff --git a/setup-alpine.in b/setup-alpine.in index fb40e8a..a246ca0 100644 --- a/setup-alpine.in +++ b/setup-alpine.in @@ -72,5 +72,7 @@ _hn=${_hn%%.*} sed -i -e "s/^127\.0\.0\.1.*/127.0.0.1\t${_hn}.${_dn:-$(get_fqdn)} ${_hn} localhost.localdomain localhost/" /etc/hosts $PREFIX/sbin/setup-apkrepos -$PREFIX/sbin/setup-disk -q + +DEFAULT_DISK=none \ + $PREFIX/sbin/setup-disk -q diff --git a/setup-disk.in b/setup-disk.in index 947ba40..9d073ec 100644 --- a/setup-disk.in +++ b/setup-disk.in @@ -781,12 +781,13 @@ ask_disk() { local i= shift 2 answer= + local default_disk=${DEFAULT_DISK:-$1} while ! all_in_list "$answer" $@ "none" "abort"; do echo "Available disks are:" show_disk_info "$@" - echon "$prompt [$1] " - default_read answer $1 + echon "$prompt [$default_disk] " + default_read answer $default_disk case "$answer" in 'abort') exit 0;; 'none') return 0;; |