1
From: martin f. krafft <madduck@debian.org>
2
Subject: Disable udev incremental assembly
4
Upstream enabled incremental assembly in the udev rules by default for 3.1.3,
5
but this is too early given the pending release of squeeze. Hence, this patch
6
simply reverts the change.
8
Signed-off-by: martin f. krafft <madduck@debian.org>
11
udev-md-raid.rules | 13 ++++++-------
12
1 files changed, 6 insertions(+), 7 deletions(-)
14
diff --git a/udev-md-raid.rules b/udev-md-raid.rules
15
index f9607f3..c9a4f0e 100644
16
--- a/udev-md-raid.rules
17
+++ b/udev-md-raid.rules
19
# do not edit this file, it will be overwritten on update
21
SUBSYSTEM!="block", GOTO="md_end"
23
-# handle potential components of arrays
24
-ENV{ID_FS_TYPE}=="linux_raid_member", ACTION=="remove", RUN+="/sbin/mdadm -If $name"
25
-ENV{ID_FS_TYPE}=="linux_raid_member", ACTION=="add", RUN+="/sbin/mdadm --incremental $env{DEVNAME}"
28
ACTION!="add|change", GOTO="md_end"
29
+ACTION=="change", GOTO="md_no_incr"
31
+# import data from a raid member and activate it
32
+#ENV{ID_FS_TYPE}=="linux_raid_member", IMPORT{program}="/sbin/mdadm --examine --export $tempnode", RUN+="/sbin/mdadm --incremental $env{DEVNAME}"
33
+# import data from a raid set
35
KERNEL!="md*", GOTO="md_end"
37
# partitions have no md/{array_state,metadata_version}, but should not
38
@@ -32,7 +32,6 @@ ENV{DEVTYPE}=="partition", ENV{MD_DEVNAME}=="*[0-9]", SYMLINK+="md/$env{MD_DEVNA
40
IMPORT{program}="/sbin/blkid -o udev -p $tempnode"
41
OPTIONS+="link_priority=100"
43
ENV{ID_FS_USAGE}=="filesystem|other|crypto", ENV{ID_FS_UUID_ENC}=="?*", SYMLINK+="disk/by-uuid/$env{ID_FS_UUID_ENC}"
44
ENV{ID_FS_USAGE}=="filesystem|other", ENV{ID_FS_LABEL_ENC}=="?*", SYMLINK+="disk/by-label/$env{ID_FS_LABEL_ENC}"
46
tg: (deb573e..) debian/disable-incremental (depends on: master)