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
55bc788b
Commit
55bc788b
authored
Jun 06, 2011
by
Natanael Copa
Browse files
setup-alpine: Use 'none' as default disk
ref #674
parent
66f08eb3
Changes
2
Hide whitespace changes
Inline
Side-by-side
setup-alpine.in
View file @
55bc788b
...
...
@@ -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
setup-disk.in
View file @
55bc788b
...
...
@@ -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
;;
...
...
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