OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
759 B

  1. # vi: set ft=conf :
  2. # md links hook into "change" events, when the array becomes available
  3. SUBSYSTEM!="block", GOTO="md_end"
  4. KERNEL!="md[0-9]*", GOTO="md_end"
  5. ACTION!="add|change", GOTO="md_end"
  6. ATTR{md/array_state}=="|clear|inactive", GOTO="md_end"
  7. IMPORT{program}="/sbin/mdadm --detail --export $tempnode"
  8. ENV{MD_NAME}=="?*", SYMLINK+="disk/by-id/md-name-$env{MD_NAME}"
  9. ENV{MD_UUID}=="?*", SYMLINK+="disk/by-id/md-uuid-$env{MD_UUID}"
  10. IMPORT{program}="vol_id --export $tempnode"
  11. OPTIONS="link_priority=100"
  12. ENV{ID_FS_USAGE}=="filesystem|other|crypto", ENV{ID_FS_UUID_ENC}=="?*", SYMLINK+="disk/by-uuid/$env{ID_FS_UUID_ENC}"
  13. ENV{ID_FS_USAGE}=="filesystem|other", ENV{ID_FS_LABEL_ENC}=="?*", SYMLINK+="disk/by-label/$env{ID_FS_LABEL_ENC}"
  14. LABEL="md_end"