aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-03-05 12:32:41 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-03-05 12:41:22 +0000
commit89e1bbbb578149f0ec6638779bf5aae1cd0ecdcb (patch)
treea3c9087cb73ed38fcf37f4b65a612ea51e1c53ec
parentf63fe0a129853aba965c0bc43fe797c9027f7723 (diff)
downloadalpine-conf-89e1bbbb578149f0ec6638779bf5aae1cd0ecdcb.tar.bz2
alpine-conf-89e1bbbb578149f0ec6638779bf5aae1cd0ecdcb.tar.xz
setup-disk: fix comment for setup_boot_dev
-rw-r--r--setup-disk.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/setup-disk.in b/setup-disk.in
index 0b9b67d..55ec5c8 100644
--- a/setup-disk.in
+++ b/setup-disk.in
@@ -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