Skip to content
GitLab
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
89e1bbbb
Commit
89e1bbbb
authored
Mar 05, 2012
by
Natanael Copa
Browse files
setup-disk: fix comment for setup_boot_dev
parent
f63fe0a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
setup-disk.in
View file @
89e1bbbb
...
...
@@ -458,7 +458,7 @@ find_lvm_partition() {
sfdisk
-d
$1
|
grep
-v
bootable |
awk
"/Id=
$type
/ {print
\$
1}"
}
# set up
boot device. We only use raid1 for boot devices if any raid
# set up
optional raid and create filesystem on boot device.
setup_boot_dev
()
{
local
disk
=
bootdev
=
local
part
=
$(
for
disk
in
$@
;
do
find_boot_partition
$disk
;
done
)
...
...
@@ -473,6 +473,7 @@ setup_boot_dev() {
missing
=
"missing"
num
=
2
fi
# we only use raid level 1 for boot devices
mdadm
--create
/dev/md0
--level
=
1
--raid-devices
=
$num
\
--metadata
=
0.90
--quiet
--run
$@
$missing
||
return
1
bootdev
=
/dev/md0
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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