dm: add 11-dm.rules for udev-168 and cleanup-db
authorHarald Hoyer <harald@redhat.com>
Thu, 21 Apr 2011 13:40:43 +0000 (15:40 +0200)
committerHarald Hoyer <harald@redhat.com>
Mon, 2 May 2011 08:55:44 +0000 (10:55 +0200)
add OPTIONS+="db_persist" to dm devices, to persist through a
udevadm info --cleanup-db

modules.d/90dm/11-dm.rules [new file with mode: 0644]
modules.d/90dm/module-setup.sh

diff --git a/modules.d/90dm/11-dm.rules b/modules.d/90dm/11-dm.rules
new file mode 100644 (file)
index 0000000..89941c4
--- /dev/null
@@ -0,0 +1,5 @@
+SUBSYSTEM!="block", GOTO="dm_end"
+KERNEL!="dm-[0-9]*", GOTO="dm_end"
+ACTION!="add|change", GOTO="dm_end"
+OPTIONS+="db_persist"
+LABEL="dm_end"
index 67b4d40..952163a 100755 (executable)
@@ -25,5 +25,6 @@ install() {
     # Gentoo ebuild for LVM2 prior to 2.02.63-r1 doesn't install above rules
     # files, but provides the one below:
     inst_rules 64-device-mapper.rules
+    inst_rules "$moddir/11-dm.rules"
 }