summaryrefslogtreecommitdiff
path: root/modules.d/90dmraid
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2010-08-23 14:42:33 +0200
committerHarald Hoyer <harald@redhat.com>2010-08-23 14:42:33 +0200
commitdab1a1dc99c7cea29890db376aa2e21a3c9407e5 (patch)
tree10c2e8bf39d61d4a9875639364aa019f25d31e12 /modules.d/90dmraid
parent4c77612245855f39c6c958d1c59ee925e5c967f2 (diff)
downloaddracut-dab1a1dc99c7cea29890db376aa2e21a3c9407e5.tar.gz
dracut-dab1a1dc99c7cea29890db376aa2e21a3c9407e5.tar.bz2
dracut-dab1a1dc99c7cea29890db376aa2e21a3c9407e5.zip
dmraid: switch to rd_NO_MDIMSM, if no mdadm installed
Diffstat (limited to 'modules.d/90dmraid')
-rwxr-xr-xmodules.d/90dmraid/parse-dm.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules.d/90dmraid/parse-dm.sh b/modules.d/90dmraid/parse-dm.sh
index f0315696..63780bd1 100755
--- a/modules.d/90dmraid/parse-dm.sh
+++ b/modules.d/90dmraid/parse-dm.sh
@@ -3,3 +3,9 @@ if getarg rd_NO_DM || getarg nodmraid; then
info "rd_NO_DM: removing DM RAID activation"
udevproperty rd_NO_DM=1
fi
+
+if [ ! -x /sbin/mdadm ] || getarg rd_NO_MDIMSM || getarg noiswmd; then
+ info "rd_NO_MDIMSM: no MD RAID for imsm/isw raids"
+ udevproperty rd_NO_MDIMSM=1
+fi
+