diff options
author | Harald Hoyer <harald@redhat.com> | 2010-08-23 14:42:33 +0200 |
---|---|---|
committer | Harald Hoyer <harald@redhat.com> | 2010-08-23 14:42:33 +0200 |
commit | dab1a1dc99c7cea29890db376aa2e21a3c9407e5 (patch) | |
tree | 10c2e8bf39d61d4a9875639364aa019f25d31e12 /modules.d/90dmraid | |
parent | 4c77612245855f39c6c958d1c59ee925e5c967f2 (diff) | |
download | dracut-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-x | modules.d/90dmraid/parse-dm.sh | 6 |
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 + |