Changeset bda8cfb for udev/60-persistent-disk.rules
- Timestamp:
- Aug 31, 2006, 9:18:26 AM (18 years ago)
- Branches:
- clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
- Children:
- d49afdb
- Parents:
- 664631f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
udev/60-persistent-disk.rules
r664631f rbda8cfb 18 18 # scheme based on "Linux persistent device names", 2004, Hannes Reinecke <hare@suse.de> 19 19 20 ACTION!="add", GOTO="persistent_ end"21 SUBSYSTEM!="block", GOTO="persistent_ end"20 ACTION!="add", GOTO="persistent_storage_end" 21 SUBSYSTEM!="block", GOTO="persistent_storage_end" 22 22 23 23 # skip rules for inappropriate block devices 24 KERNEL=="ram*|loop*|fd*|nbd*", GOTO="persistent_end" 24 KERNEL=="ram*|loop*|fd*|nbd*", GOTO="persistent_storage_end" 25 26 # Set Permissions on CDOM 27 BUS=="ide", DRIVER=="ide-cdrom", ATTRS{removable}=="1", GROUP="cdrom", MODE="660" 25 28 26 29 # never access removable ide devices, the drivers are causing event loops on open() 27 BUS=="ide", DRIVER=="ide-cdrom", SYSFS{removable}=="1", GROUP="cdrom", MODE="660"28 BUS=="ide", DRIVER!="ide-cdrom", SYSFS{removable}=="1", GOTO="persistent_end"30 KERNEL=="hd*[!0-9]", ATTRS{removable}=="1", DRIVERS=="ide-cs|ide-floppy", GOTO="persistent_storage_end" 31 KERNEL=="hd*[0-9]", ATTRS{../removable}=="1", GOTO="persistent_storage_end" 29 32 30 33 # by-id (hardware serial number) … … 33 36 KERNEL=="hd*[0-9]", IMPORT{parent}=="ID_*", SYMLINK+="disk/by-id/ata-$env{ID_MODEL}_$env{ID_SERIAL}-part%n" 34 37 35 KERNEL=="sd*[!0-9]|sr*", SYSFS{ieee1394_id}=="*", ENV{ID_SERIAL}="$sysfs{ieee1394_id}", ENV{ID_BUS}="ieee1394"38 KERNEL=="sd*[!0-9]|sr*", ATTRS{ieee1394_id}=="*", ENV{ID_SERIAL}="$attr{ieee1394_id}", ENV{ID_BUS}="ieee1394" 36 39 KERNEL=="sd*[!0-9]|sr*", ENV{ID_SERIAL}=="", IMPORT{program}="usb_id -x" 37 40 KERNEL=="sd*[!0-9]|sr*", ENV{ID_SERIAL}=="", IMPORT{program}="scsi_id -g -x -s %p -d $tempnode" … … 46 49 # by-path (shortest physical path) 47 50 KERNEL=="*[!0-9]|sr*", ENV{ID_TYPE}=="?*", IMPORT{program}="path_id %p", SYMLINK+="disk/by-path/$env{ID_PATH}" 48 KERNEL=="sr*", GOTO="persistent_ end"51 KERNEL=="sr*", GOTO="persistent_storage_end" 49 52 KERNEL=="*[0-9]", IMPORT{parent}=="ID_*" 50 53 KERNEL=="*[0-9]", ENV{ID_PATH}=="?*", SYMLINK+="disk/by-path/$env{ID_PATH}-part%n" 51 54 52 55 # by-label/by-uuid (filesystem properties) 53 KERNEL=="*[!0-9]", SYSFS{removable}=="1", GOTO="persistent_end"56 KERNEL=="*[!0-9]", ATTRS{removable}=="1", GOTO="persistent_storage_end" 54 57 IMPORT{program}="vol_id --export $tempnode" 55 58 ENV{ID_FS_UUID}=="?*", SYMLINK+="disk/by-uuid/$env{ID_FS_UUID}" … … 63 66 KERNEL=="dm-[0-9]*", ACTION=="add", PROGRAM="/sbin/dmsetup info -c --noopencount --noheadings -o name -j %M -m %m", SYMLINK+="disk/by-name/%c" 64 67 65 LABEL="persistent_ end"68 LABEL="persistent_storage_end"
Note: See TracChangeset
for help on using the changeset viewer.