Commit c0ad60b0 authored by Natanael Copa's avatar Natanael Copa

setup-disk: add raid to initfs if root is on lvm

ref #4421
parent 0cc00b53
......@@ -234,6 +234,14 @@ install_mounted_root() {
# check if our root is on raid so we can feed mkinitfs and
# update-exlinux.conf with the proper kernel module params
for dev in $rootdev $pvs; do
# check if we need hardware raid drivers
case $dev in
/dev/cciss/*)
initfs_features="${initfs_features% raid} raid"
;;
esac
[ -e "/sys/block/${dev#/dev/}/md" ] || continue
local md=${dev#/dev/}
......@@ -245,12 +253,6 @@ install_mounted_root() {
esac
done
# check if we need hardware raid drivers
case $rootdev in
/dev/cciss/*)
initfs_features="${initfs_features% raid} raid"
;;
esac
if [ -n "$VERBOSE" ]; then
echo "Root device: $rootdev"
......
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