Commit 89e1bbbb authored by Natanael Copa's avatar Natanael Copa
Browse files

setup-disk: fix comment for setup_boot_dev

parent f63fe0a1
...@@ -458,7 +458,7 @@ find_lvm_partition() { ...@@ -458,7 +458,7 @@ find_lvm_partition() {
sfdisk -d $1 | grep -v bootable | awk "/Id=$type/ {print \$1}" 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() { setup_boot_dev() {
local disk= bootdev= local disk= bootdev=
local part=$(for disk in $@; do find_boot_partition $disk; done) local part=$(for disk in $@; do find_boot_partition $disk; done)
...@@ -473,6 +473,7 @@ setup_boot_dev() { ...@@ -473,6 +473,7 @@ setup_boot_dev() {
missing="missing" missing="missing"
num=2 num=2
fi fi
# we only use raid level 1 for boot devices
mdadm --create /dev/md0 --level=1 --raid-devices=$num \ mdadm --create /dev/md0 --level=1 --raid-devices=$num \
--metadata=0.90 --quiet --run $@ $missing || return 1 --metadata=0.90 --quiet --run $@ $missing || return 1
bootdev=/dev/md0 bootdev=/dev/md0
......
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