dmraid: let dmraid setup the partitions
authorHarald Hoyer <harald@redhat.com>
Wed, 17 Jul 2013 10:07:19 +0000 (12:07 +0200)
committerHarald Hoyer <harald@redhat.com>
Wed, 17 Jul 2013 10:07:19 +0000 (12:07 +0200)
modules.d/90dmraid/dmraid.sh

index 3753ddd..dfd0f1c 100755 (executable)
@@ -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