Commit 2b378636 authored by Natanael Copa's avatar Natanael Copa
Browse files

setup-disk: cleanup. make sure we don't add raid modules more than once

parent 524a1b0a
......@@ -207,8 +207,8 @@ install_mounted_root() {
initfs_features="${initfs_features% raid} raid"
local level=$(cat /sys/block/$md/md/level)
case "$level" in
raid1) raidmod="$raidmod,$level";;
raid[456]) raidmod="$raidmod,raid456";;
raid1) raidmod="${raidmod%,raid1},raid1";;
raid[456]) raidmod="${raidmod%,raid456},raid456";;
Supports Markdown
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