1
commit 351618d08270a0832db3c282082207e6dfa24845
2
Author: Martin Pitt <martin.pitt@ubuntu.com>
3
Date: Tue Nov 3 21:50:25 2009 +0100
5
Bug 24885 — LVM LVs now have NOPOLICY=0
7
Commit a95d3 caused the NOPOLICY rules get cut short for LVs. Move the NOPOLICY
8
check close to the top, since its (1) very cheap, and (2) very generic, i. e.
9
rules further down might want to tweak it for special cases.
11
Signed-off-by: David Zeuthen <davidz@redhat.com>
13
diff --git a/data/95-devkit-disks.rules b/data/95-devkit-disks.rules
14
index cff8277..7f210ad 100644
15
--- a/data/95-devkit-disks.rules
16
+++ b/data/95-devkit-disks.rules
17
@@ -6,6 +6,17 @@ ACTION!="add|change", GOTO="devkit_disks_end"
18
SUBSYSTEM!="block", GOTO="devkit_disks_end"
19
KERNEL=="loop*|ram*", GOTO="devkit_disks_end"
21
+# Mark devices that shouldn't be automounted / autoassembled etc.
23
+# Deny all, then punch holes for what looks like physical drives
24
+# (TODO: this heuristic might need some work)
27
+ENV{DKD_PRESENTATION_NOPOLICY}="1"
28
+KERNEL=="sd*|hd*|sr*|mmcblk*|mspblk*", ENV{DKD_PRESENTATION_NOPOLICY}="0"
30
+##############################################################################################################
32
# we only care about change events on device-mapper
33
# devices - never touch the device on add events
34
KERNEL=="dm-*", ACTION!="change", GOTO="devkit_disks_end"
35
@@ -152,15 +163,5 @@ ENV{ID_FS_TYPE}=="ntfs|vfat", \
37
##############################################################################################################
39
-# Mark devices that shouldn't be automounted / autoassembled etc.
41
-# Deny all, then punch holes for what looks like physical drives
42
-# (TODO: this heuristic might need some work)
45
-ENV{DKD_PRESENTATION_NOPOLICY}="1"
46
-KERNEL=="sd*|hd*|sr*|mmcblk*|mspblk*", ENV{DKD_PRESENTATION_NOPOLICY}="0"
48
-##############################################################################################################
50
LABEL="devkit_disks_end"