]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
don't specify "p" as a separator for dmraid arrays (RHBZ #966162)
authorAdam Williamson <awilliam@redhat.com>
Wed, 22 May 2013 20:56:58 +0000 (13:56 -0700)
committerHarald Hoyer <harald@redhat.com>
Mon, 27 May 2013 08:08:53 +0000 (10:08 +0200)
As per RHBZ #966162, parted stopped unconditionally using "p" as a
separator for dmraid device names in version 3.1, so other things need
to fall in line with that convention now.

modules.d/90dmraid/dmraid.sh

index 68e051593cad69fd617d6921f3d47cb52fcebf0a..3753ddd7e592eec8c397d6c3ad963983a64a3af2 100755 (executable)
@@ -28,7 +28,7 @@ if [ -n "$DM_RAIDS" ] || getargbool 0 rd.auto; then
                 if [ "${s##$r}" != "$s" ]; then
                     info "Activating $s"
                     dmraid -ay -i -p --rm_partitions "$s" 2>&1 | vinfo
-                    [ -e "/dev/mapper/$s" ] && kpartx -a -p p "/dev/mapper/$s" 2>&1 | vinfo
+                    [ -e "/dev/mapper/$s" ] && kpartx -a "/dev/mapper/$s" 2>&1 | vinfo
                     udevsettle
                 fi
             done
@@ -38,7 +38,7 @@ if [ -n "$DM_RAIDS" ] || getargbool 0 rd.auto; then
         for s in $SETS; do
             info "Activating $s"
             dmraid -ay -i -p --rm_partitions "$s" 2>&1 | vinfo
-            [ -e "/dev/mapper/$s" ] && kpartx -a -p p "/dev/mapper/$s" 2>&1 | vinfo
+            [ -e "/dev/mapper/$s" ] && kpartx -a "/dev/mapper/$s" 2>&1 | vinfo
         done
     fi