|
Harald Hoyer |
fe48c9 |
From da119ab18c4813b543f16303a62a6b718c6abcb3 Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
fe48c9 |
From: Harald Hoyer <harald@redhat.com>
|
|
Harald Hoyer |
fe48c9 |
Date: Mon, 26 Aug 2013 12:46:51 +0200
|
|
Harald Hoyer |
fe48c9 |
Subject: [PATCH] dmraid/parse-dm.sh: if rd.md=0, use dmraid for imsm and ddf
|
|
Harald Hoyer |
fe48c9 |
|
|
Harald Hoyer |
fe48c9 |
---
|
|
Harald Hoyer |
fe48c9 |
modules.d/90dmraid/parse-dm.sh | 8 ++++++--
|
|
Harald Hoyer |
fe48c9 |
1 file changed, 6 insertions(+), 2 deletions(-)
|
|
Harald Hoyer |
fe48c9 |
|
|
Harald Hoyer |
fe48c9 |
diff --git a/modules.d/90dmraid/parse-dm.sh b/modules.d/90dmraid/parse-dm.sh
|
|
Harald Hoyer |
fe48c9 |
index 76dfb5d..6d21d4f 100755
|
|
Harald Hoyer |
fe48c9 |
--- a/modules.d/90dmraid/parse-dm.sh
|
|
Harald Hoyer |
fe48c9 |
+++ b/modules.d/90dmraid/parse-dm.sh
|
|
Harald Hoyer |
fe48c9 |
@@ -7,12 +7,16 @@ if ! getargbool 1 rd.dm -d -n rd_NO_DM || getarg "rd.dm=0" -d nodmraid; then
|
|
Harald Hoyer |
fe48c9 |
udevproperty rd_NO_DM=1
|
|
Harald Hoyer |
fe48c9 |
fi
|
|
Harald Hoyer |
fe48c9 |
|
|
Harald Hoyer |
fe48c9 |
-if ! command -v mdadm >/dev/null || ! getargbool 1 rd.md.imsm -d -n rd_NO_MDIMSM -n noiswmd; then
|
|
Harald Hoyer |
fe48c9 |
+if ! command -v mdadm >/dev/null \
|
|
Harald Hoyer |
fe48c9 |
+ || ! getargbool 1 rd.md.imsm -d -n rd_NO_MDIMSM -n noiswmd \
|
|
Harald Hoyer |
fe48c9 |
+ || ! getargbool 1 rd.md -d -n rd_NO_MD; then
|
|
Harald Hoyer |
fe48c9 |
info "rd.md.imsm=0: no MD RAID for imsm/isw raids"
|
|
Harald Hoyer |
fe48c9 |
udevproperty rd_NO_MDIMSM=1
|
|
Harald Hoyer |
fe48c9 |
fi
|
|
Harald Hoyer |
fe48c9 |
|
|
Harald Hoyer |
fe48c9 |
-if ! command -v mdadm >/dev/null || ! getargbool 1 rd.md.ddf -n rd_NO_MDDDF -n noddfmd; then
|
|
Harald Hoyer |
fe48c9 |
+if ! command -v mdadm >/dev/null \
|
|
Harald Hoyer |
fe48c9 |
+ || ! getargbool 1 rd.md.ddf -n rd_NO_MDDDF -n noddfmd \
|
|
Harald Hoyer |
fe48c9 |
+ || ! getargbool 1 rd.md -d -n rd_NO_MD; then
|
|
Harald Hoyer |
fe48c9 |
info "rd.md.ddf=0: no MD RAID for SNIA ddf raids"
|
|
Harald Hoyer |
fe48c9 |
udevproperty rd_NO_MDDDF=1
|
|
Harald Hoyer |
fe48c9 |
fi
|