Bug#488223: udev rule to export "dmsetup export" information

Guido Günther agx at sigxcpu.org
Fri Jun 27 07:43:13 UTC 2008


Package: dmsetup
Version: 2:1.02.26-1
Severity: wishlist

Hi,
the attached udev rule exports the information available via "dmsetup
export" for use by other udev rules. Since kpartx/multipath runs as
(z)60 this rule should run before that. There's some overlap with Bug
#455746.
Cheers,
 -- Guido
-------------- next part --------------
# Export device mapper status into the environment
# used by e.g. multipath-tools
#
# See udev(8) for syntax.

SUBSYSTEM!="block", GOTO="dmsetup_end"
KERNEL!="dm-*", GOTO="dmsetup_end"
ACTION!="add|change", GOTO="dmsetup_end"

IMPORT{program}="/sbin/dmsetup export -j%M -m%m"

LABEL="dmsetup_end"


More information about the pkg-lvm-maintainers mailing list