diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2008-05-09 09:05:42 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2008-05-09 09:05:42 +0200 |
commit | f76f82f8342978640da8be47e7296f0e01c0dcba (patch) | |
tree | a2b01befdd974eaca10cf740db7d4d167091ae38 /etc | |
parent | 0654a21c78caf312fa612059725d1b47c78e7802 (diff) |
rules: update md rules
Activate the rule for autoassembly later.
The needed options are merged into mdadm git, but not released.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/udev/packages/64-md-raid.rules | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/etc/udev/packages/64-md-raid.rules b/etc/udev/packages/64-md-raid.rules index 02f27ee07e..b8baea207f 100644 --- a/etc/udev/packages/64-md-raid.rules +++ b/etc/udev/packages/64-md-raid.rules @@ -1,9 +1,13 @@ # do not edit this file, it will be overwritten on update SUBSYSTEM!="block", GOTO="md_end" -KERNEL!="md[0-9]*", GOTO="md_end" ACTION!="add|change", GOTO="md_end" +# import data from a raid member and activate it +#ENV{ID_FS_TYPE}=="linux_raid_member", IMPORT{program}="/sbin/mdadm --examine --export $tempnode", RUN+="/sbin/mdadm --incremental $env{DEVNAME}" +# import data from a raid set +KERNEL!="md*", GOTO="md_end" + ATTR{md/array_state}=="|clear|inactive", GOTO="md_end" IMPORT{program}="/sbin/mdadm --detail --export $tempnode" |