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

https://bugzilla.opensuse.org/show_bug.cgi?id=905746
master
Hannes Reinecke 2017-02-03 16:02:33 +01:00 committed by Daniel Molkentin
parent 308c4066fe
commit 9d651355a1
2 changed files with 2 additions and 2 deletions

View File

@ -33,8 +33,6 @@ if [ -n "$DM_RAIDS" ] || getargbool 0 rd.auto; then
if [ "${s##$r}" != "$s" ]; then if [ "${s##$r}" != "$s" ]; then
info "Activating $s" info "Activating $s"
dmraid -ay -i -p --rm_partitions "$s" 2>&1 | vinfo dmraid -ay -i -p --rm_partitions "$s" 2>&1 | vinfo
[ -e "/dev/mapper/$s" ] && kpartx -a "/dev/mapper/$s" 2>&1 | vinfo
udevsettle
fi fi
done done
done done

View File

@ -74,6 +74,8 @@ install() {


inst "$moddir/dmraid.sh" /sbin/dmraid_scan inst "$moddir/dmraid.sh" /sbin/dmraid_scan


inst_rules 66-kpartx.rules 67-kpartx-compat.rules

inst_libdir_file "libdmraid-events*.so*" inst_libdir_file "libdmraid-events*.so*"


inst_rules "$moddir/61-dmraid-imsm.rules" inst_rules "$moddir/61-dmraid-imsm.rules"