diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2007-08-10 15:23:34 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2007-08-10 15:23:34 +0200 |
commit | 21ac1311d806e5506e01809ff5cb68b2d6ae8a92 (patch) | |
tree | 69835c4240706a4e4f048cd27e60a33d78ece9d7 /etc/udev/packages | |
parent | 6ffa398695ded5594e6706e17aadfd95a7ea7d76 (diff) |
rules: move md-raid rules to packages dir
Diffstat (limited to 'etc/udev/packages')
-rw-r--r-- | etc/udev/packages/64-md-raid.rules | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/etc/udev/packages/64-md-raid.rules b/etc/udev/packages/64-md-raid.rules new file mode 100644 index 0000000000..02f27ee07e --- /dev/null +++ b/etc/udev/packages/64-md-raid.rules @@ -0,0 +1,18 @@ +# 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" + +ATTR{md/array_state}=="|clear|inactive", GOTO="md_end" + +IMPORT{program}="/sbin/mdadm --detail --export $tempnode" +ENV{MD_NAME}=="?*", SYMLINK+="disk/by-id/md-name-$env{MD_NAME}" +ENV{MD_UUID}=="?*", SYMLINK+="disk/by-id/md-uuid-$env{MD_UUID}" + +IMPORT{program}="vol_id --export $tempnode" +OPTIONS="link_priority=100" +ENV{ID_FS_USAGE}=="filesystem|other|crypto", ENV{ID_FS_UUID_ENC}=="?*", SYMLINK+="disk/by-uuid/$env{ID_FS_UUID_ENC}" +ENV{ID_FS_USAGE}=="filesystem|other", ENV{ID_FS_LABEL_ENC}=="?*", SYMLINK+="disk/by-label/$env{ID_FS_LABEL_ENC}" + +LABEL="md_end" |