Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
alpine-conf
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
19
Issues
19
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpine
alpine-conf
Commits
55bc788b
Commit
55bc788b
authored
Jun 06, 2011
by
Natanael Copa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setup-alpine: Use 'none' as default disk
ref #674
parent
66f08eb3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
setup-alpine.in
setup-alpine.in
+3
-1
setup-disk.in
setup-disk.in
+3
-2
No files found.
setup-alpine.in
View file @
55bc788b
...
@@ -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
setup-disk.in
View file @
55bc788b
...
@@ -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
;;
...
...
Write
Preview
Markdown
is supported
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