Skip to content

Commit

Permalink
dm: add 11-dm.rules for udev-168 and cleanup-db
Browse files Browse the repository at this point in the history
add OPTIONS+="db_persist" to dm devices, to persist through a
udevadm info --cleanup-db
  • Loading branch information
haraldh committed May 2, 2011
1 parent 64fcb3c commit 12b9736
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules.d/90dm/11-dm.rules
Original file line number Diff line number Diff line change
@@ -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"
1 change: 1 addition & 0 deletions modules.d/90dm/module-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

0 comments on commit 12b9736

Please sign in to comment.