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.

34 lines
1.0 KiB

  1. ########################################################################
  2. #
  3. # Description : 70-device-mapper.rules
  4. #
  5. # Authors : Based on Open Suse Udev Rules
  6. # kay.sievers@suse.de
  7. #
  8. # Adapted to : Jim Gifford
  9. # LFS
  10. #
  11. # Version : 00.01
  12. #
  13. # Notes :
  14. #
  15. ########################################################################
  16. # device mapper links hook into "online" event, when the dm table
  17. # is available, while some table types must be ignored
  18. KERNEL=="device-mapper", SYMLINK+="mapper/control"
  19. KERNEL=="dm-*", ACTION=="add|change", GOTO="device_mapper_do"
  20. GOTO="device_mapper_end"
  21. LABEL="device_mapper_do"
  22. PROGRAM!="/sbin/dmsetup status -j %M -m %m", GOTO="device_mapper_end"
  23. RESULT=="|*snapshot*|*error*", GOTO="device_mapper_end"
  24. IMPORT{program}="vol_id --export $tempnode"
  25. ENV{ID_FS_USAGE}=="filesystem|other|crypto", ENV{ID_FS_UUID}=="?*", SYMLINK+="disk/by-uuid/$env{ID_FS_UUID}"
  26. ENV{ID_FS_USAGE}=="filesystem|other", ENV{ID_FS_LABEL_SAFE}=="?*", SYMLINK+="disk/by-label/$env{ID_FS_LABEL_SAFE}"
  27. LABEL="device_mapper_end"