Commit 55bc788b authored by Natanael Copa's avatar Natanael Copa

setup-alpine: Use 'none' as default disk

ref #674
parent 66f08eb3
...@@ -72,5 +72,7 @@ _hn=${_hn%%.*} ...@@ -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 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-apkrepos
$PREFIX/sbin/setup-disk -q
DEFAULT_DISK=none \
$PREFIX/sbin/setup-disk -q
...@@ -781,12 +781,13 @@ ask_disk() { ...@@ -781,12 +781,13 @@ ask_disk() {
local i= local i=
shift 2 shift 2
answer= answer=
local default_disk=${DEFAULT_DISK:-$1}
while ! all_in_list "$answer" $@ "none" "abort"; do while ! all_in_list "$answer" $@ "none" "abort"; do
echo "Available disks are:" echo "Available disks are:"
show_disk_info "$@" show_disk_info "$@"
echon "$prompt [$1] " echon "$prompt [$default_disk] "
default_read answer $1 default_read answer $default_disk
case "$answer" in case "$answer" in
'abort') exit 0;; 'abort') exit 0;;
'none') return 0;; 'none') return 0;;
......
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