File 0304-dmraid_use_udev.patch of Package dracut.892

From: Hannes Reinecke <hare@suse.com>

Use udev rules to create dmraid /dev/mapper/ devices

https://bugzilla.opensuse.org/show_bug.cgi?id=905746

---
 modules.d/90dmraid/dmraid.sh       | 3 ---
 modules.d/90dmraid/module-setup.sh | 2 +-
 2 files changed, 1 insertion(+), 4 deletions(-)
Index: dracut-037/modules.d/90dmraid/dmraid.sh
===================================================================
--- dracut-037.orig/modules.d/90dmraid/dmraid.sh	2014-03-19 17:16:08.000000000 +0100
+++ dracut-037/modules.d/90dmraid/dmraid.sh	2015-07-02 14:42:45.401664649 +0200
@@ -28,8 +28,6 @@ if [ -n "$DM_RAIDS" ] || getargbool 0 rd
                 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
-                    udevsettle
                 fi
             done
         done
Index: dracut-037/modules.d/90dmraid/module-setup.sh
===================================================================
--- dracut-037.orig/modules.d/90dmraid/module-setup.sh	2015-07-02 14:42:42.925525906 +0200
+++ dracut-037/modules.d/90dmraid/module-setup.sh	2015-07-02 14:43:41.584813205 +0200
@@ -76,7 +76,7 @@ install() {
 
     inst "$moddir/dmraid.sh" /sbin/dmraid_scan
 
-    inst_rules 64-md-raid.rules
+    inst_rules 66-kpartx.rules 67-kpartx-compat.rules
 
     inst_libdir_file "libdmraid-events*.so*"