summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-07-01 14:17:07 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-07-15 13:12:04 +0000
commitc0ad60b0f9fdb31bd3398d898ecb653c916d0ef9 (patch)
treeaebe04865028308ad64ee84e6b13de1e251682a7
parent0cc00b53d8e918699413dbe1ddd1989bb4ddec4a (diff)
downloadalpine-conf-c0ad60b0f9fdb31bd3398d898ecb653c916d0ef9.zip
setup-disk: add raid to initfs if root is on lvm
ref #4421
-rw-r--r--setup-disk.in14
1 files changed, 8 insertions, 6 deletions
diff --git a/setup-disk.in b/setup-disk.in
index 9444b7e..e2798f9 100644
--- a/setup-disk.in
+++ b/setup-disk.in
@@ -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"