2015-06-30 14:59:59 +02:00
|
|
|
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(-)
|
2015-11-26 12:35:04 +01:00
|
|
|
Index: dracut-044/modules.d/90dmraid/dmraid.sh
|
2015-06-30 14:59:59 +02:00
|
|
|
===================================================================
|
2015-11-26 12:35:04 +01:00
|
|
|
--- dracut-044.orig/modules.d/90dmraid/dmraid.sh
|
|
|
|
+++ dracut-044/modules.d/90dmraid/dmraid.sh
|
|
|
|
@@ -33,8 +33,6 @@ if [ -n "$DM_RAIDS" ] || getargbool 0 rd
|
2015-06-30 14:59:59 +02:00
|
|
|
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
|
2015-11-26 12:35:04 +01:00
|
|
|
Index: dracut-044/modules.d/90dmraid/module-setup.sh
|
2015-06-30 14:59:59 +02:00
|
|
|
===================================================================
|
2015-11-26 12:35:04 +01:00
|
|
|
--- dracut-044.orig/modules.d/90dmraid/module-setup.sh
|
|
|
|
+++ dracut-044/modules.d/90dmraid/module-setup.sh
|
2015-06-30 14:59:59 +02:00
|
|
|
@@ -74,6 +74,8 @@ install() {
|
|
|
|
|
|
|
|
inst "$moddir/dmraid.sh" /sbin/dmraid_scan
|
|
|
|
|
2015-11-25 11:31:16 +01:00
|
|
|
+ inst_rules 66-kpartx.rules 67-kpartx-compat.rules
|
2015-06-30 14:59:59 +02:00
|
|
|
+
|
|
|
|
inst_libdir_file "libdmraid-events*.so*"
|
|
|
|
|
|
|
|
inst_rules "$moddir/61-dmraid-imsm.rules"
|