summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2013-07-17 12:07:19 +0200
committerHarald Hoyer <harald@redhat.com>2013-07-17 12:07:19 +0200
commitfbf717086e8b02947a27f55d1759cccd1cb89e99 (patch)
treeb52dfc0ee8dd9f9f47f53e9ddb252aae46f861c9
parent5a6a98f875abb186c94171bc672259a28fddb560 (diff)
downloaddracut-fbf717086e8b02947a27f55d1759cccd1cb89e99.tar.gz
dracut-fbf717086e8b02947a27f55d1759cccd1cb89e99.tar.bz2
dracut-fbf717086e8b02947a27f55d1759cccd1cb89e99.zip
dmraid: let dmraid setup the partitions
-rwxr-xr-xmodules.d/90dmraid/dmraid.sh6
1 files changed, 2 insertions, 4 deletions
diff --git a/modules.d/90dmraid/dmraid.sh b/modules.d/90dmraid/dmraid.sh
index 3753ddd7..dfd0f1cb 100755
--- a/modules.d/90dmraid/dmraid.sh
+++ b/modules.d/90dmraid/dmraid.sh
@@ -27,8 +27,7 @@ if [ -n "$DM_RAIDS" ] || getargbool 0 rd.auto; then
for s in $SETS; do
if [ "${s##$r}" != "$s" ]; then
info "Activating $s"
- dmraid -ay -i -p --rm_partitions "$s" 2>&1 | vinfo
- [ -e "/dev/mapper/$s" ] && kpartx -a "/dev/mapper/$s" 2>&1 | vinfo
+ dmraid -ay -i --rm_partitions "$s" 2>&1 | vinfo
udevsettle
fi
done
@@ -37,8 +36,7 @@ if [ -n "$DM_RAIDS" ] || getargbool 0 rd.auto; then
# scan and activate all DM RAIDS
for s in $SETS; do
info "Activating $s"
- dmraid -ay -i -p --rm_partitions "$s" 2>&1 | vinfo
- [ -e "/dev/mapper/$s" ] && kpartx -a "/dev/mapper/$s" 2>&1 | vinfo
+ dmraid -ay -i --rm_partitions "$s" 2>&1 | vinfo
done
fi