Blame SOURCES/0091-Revert-dmraid-let-dmraid-setup-the-partitions.patch

18971c
From b1cdf7c5d4df3221504c34010985254f4261b3dd Mon Sep 17 00:00:00 2001
18971c
From: Harald Hoyer <harald@redhat.com>
18971c
Date: Fri, 24 Jan 2014 11:55:27 +0100
18971c
Subject: [PATCH] Revert "dmraid: let dmraid setup the partitions"
18971c
18971c
This reverts commit fbf717086e8b02947a27f55d1759cccd1cb89e99.
18971c
18971c
dmraid seems to use "p" as a seperator by default.
18971c
18971c
Reverting to kpartx, until this is fixed.
18971c
---
18971c
 modules.d/90dmraid/dmraid.sh | 6 ++++--
18971c
 1 file changed, 4 insertions(+), 2 deletions(-)
18971c
18971c
diff --git a/modules.d/90dmraid/dmraid.sh b/modules.d/90dmraid/dmraid.sh
18971c
index dfd0f1cb..3753ddd7 100755
18971c
--- a/modules.d/90dmraid/dmraid.sh
18971c
+++ b/modules.d/90dmraid/dmraid.sh
18971c
@@ -27,7 +27,8 @@ if [ -n "$DM_RAIDS" ] || getargbool 0 rd.auto; then
18971c
             for s in $SETS; do
18971c
                 if [ "${s##$r}" != "$s" ]; then
18971c
                     info "Activating $s"
18971c
-                    dmraid -ay -i --rm_partitions "$s" 2>&1 | vinfo
18971c
+                    dmraid -ay -i -p --rm_partitions "$s" 2>&1 | vinfo
18971c
+                    [ -e "/dev/mapper/$s" ] && kpartx -a "/dev/mapper/$s" 2>&1 | vinfo
18971c
                     udevsettle
18971c
                 fi
18971c
             done
18971c
@@ -36,7 +37,8 @@ if [ -n "$DM_RAIDS" ] || getargbool 0 rd.auto; then
18971c
     # scan and activate all DM RAIDS
18971c
         for s in $SETS; do
18971c
             info "Activating $s"
18971c
-            dmraid -ay -i --rm_partitions "$s" 2>&1 | vinfo
18971c
+            dmraid -ay -i -p --rm_partitions "$s" 2>&1 | vinfo
18971c
+            [ -e "/dev/mapper/$s" ] && kpartx -a "/dev/mapper/$s" 2>&1 | vinfo
18971c
         done
18971c
     fi
18971c