- Timestamp:
- Sep 10, 2006, 3:57:17 PM (18 years ago)
- Branches:
- clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
- Children:
- 9aa77af
- Parents:
- 402b0fd
- Location:
- udev
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
udev/60-persistent-disk.rules
r402b0fd r1400499 22 22 23 23 # skip rules for inappropriate block devices 24 KERNEL=="ram*|loop*|fd*|nbd* ",GOTO="persistent_storage_end"24 KERNEL=="ram*|loop*|fd*|nbd*|dm-*", GOTO="persistent_storage_end" 25 25 26 26 # Set Permissions on CDOM … … 28 28 29 29 # never access removable ide devices, the drivers are causing event loops on open() 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" 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" 32 33 # for partitions import parent information 34 KERNEL=="*[0-9]", IMPORT{parent}=="ID_*" 32 35 33 36 # by-id (hardware serial number) … … 36 39 KERNEL=="hd*[0-9]", IMPORT{parent}=="ID_*", SYMLINK+="disk/by-id/ata-$env{ID_MODEL}_$env{ID_SERIAL}-part%n" 37 40 38 KERNEL=="sd*[!0-9]|sr*", ATTRS{ieee1394_id}=="*", ENV{ID_SERIAL}="$attr{ieee1394_id}", ENV{ID_BUS}="ieee1394" 39 KERNEL=="sd*[!0-9]|sr*", ENV{ID_SERIAL}=="", IMPORT{program}="usb_id -x" 40 KERNEL=="sd*[!0-9]|sr*", ENV{ID_SERIAL}=="", IMPORT{program}="scsi_id -g -x -s %p -d $tempnode" 41 KERNEL=="sd*[!0-9]|sr*", ENV{ID_SERIAL}=="", IMPORT{program}="scsi_id -g -x -a -s %p -d $tempnode" 42 KERNEL=="dasd*[!0-9]", IMPORT{program}="dasd_id --export $tempnode" 43 KERNEL=="sd*[!0-9]|sr*|dasd*[!0-9]", ENV{ID_SERIAL}=="?*", SYMLINK+="disk/by-id/$env{ID_BUS}-$env{ID_SERIAL}" 44 45 # for partitions import parent information 46 KERNEL=="sd*[0-9]|dasd*[0-9]", IMPORT{parent}=="ID_*" 47 KERNEL=="sd*[0-9]|dasd*[0-9]", ENV{ID_SERIAL}=="?*", SYMLINK+="disk/by-id/$env{ID_BUS}-$env{ID_SERIAL}-part%n" 41 KERNEL=="sd*[!0-9]|sr*|st*", ATTRS{ieee1394_id}=="*", ENV{ID_SERIAL}="$attr{ieee1394_id}", ENV{ID_BUS}="ieee1394" 42 KERNEL=="sd*[!0-9]|sr*|st*", ENV{ID_SERIAL}=="", IMPORT{program}="usb_id -x" 43 KERNEL=="sd*[!0-9]|sr*|st*", ENV{ID_SERIAL}=="", IMPORT{program}="scsi_id -g -x -s %p -d $tempnode" 44 KERNEL=="sd*[!0-9]|sr*|st*", ENV{ID_SERIAL}=="", IMPORT{program}="scsi_id -g -x -a -s %p -d $tempnode" 45 KERNEL=="dasd*[!0-9]", IMPORT{program}="dasd_id --export $tempnode" 46 KERNEL=="sd*[!0-9]|sr*|dasd*[!0-9]", ENV{ID_SERIAL}=="?*", SYMLINK+="disk/by-id/$env{ID_BUS}-$env{ID_SERIAL}" 47 KERNEL=="sd*[0-9]|dasd*[0-9]", ENV{ID_SERIAL}=="?*", SYMLINK+="disk/by-id/$env{ID_BUS}-$env{ID_SERIAL}-part%n" 48 KERNEL=="st*", ENV{ID_SERIAL}=="?*", SYMLINK+="tape/by-id/$env{ID_BUS}-$env{ID_SERIAL}" 48 49 49 50 # by-path (shortest physical path) 50 KERNEL=="*[!0-9]|sr*", ENV{ID_TYPE}=="?*",IMPORT{program}="path_id %p", SYMLINK+="disk/by-path/$env{ID_PATH}"51 KERNEL=="s r*", GOTO="persistent_storage_end"52 KERNEL==" *[0-9]", IMPORT{parent}=="ID_*"53 KERNEL=="*[0-9]", ENV{ID_PATH}=="?*", SYMLINK+="disk/by-path/$env{ID_PATH}-part%n"51 KERNEL=="*[!0-9]|sr*", IMPORT{program}="path_id %p", SYMLINK+="disk/by-path/$env{ID_PATH}" 52 KERNEL=="st*", IMPORT{program}="path_id %p", SYMLINK+="tape/by-path/$env{ID_PATH}" 53 KERNEL=="sr*|st*", GOTO="persistent_storage_end" 54 KERNEL=="*[0-9]", ENV{ID_PATH}=="?*", SYMLINK+="disk/by-path/$env{ID_PATH}-part%n" 54 55 55 56 # by-label/by-uuid (filesystem properties) 56 KERNEL=="*[!0-9]", ATTRS{removable}=="1", GOTO="persistent_storage_end"57 KERNEL=="*[!0-9]", ATTR{removable}=="1", GOTO="persistent_storage_end" 57 58 IMPORT{program}="vol_id --export $tempnode" 58 ENV{ID_FS_U UID}=="?*",SYMLINK+="disk/by-uuid/$env{ID_FS_UUID}"59 ENV{ID_FS_ LABEL_SAFE}=="?*",SYMLINK+="disk/by-label/$env{ID_FS_LABEL_SAFE}"59 ENV{ID_FS_USAGE}=="filesystem|other|crypto", ENV{ID_FS_UUID}=="?*", SYMLINK+="disk/by-uuid/$env{ID_FS_UUID}" 60 ENV{ID_FS_USAGE}=="filesystem|other", ENV{ID_FS_LABEL_SAFE}=="?*", SYMLINK+="disk/by-label/$env{ID_FS_LABEL_SAFE}" 60 61 61 62 # BIOS Enhanced Disk Device 62 KERNEL=="*[!0-9]", IMPORT{program}="edd_id --export $tempnode" 63 KERNEL=="*[!0-9]", ENV{ID_EDD}=="?*", SYMLINK+="disk/by-id/edd-$env{ID_EDD}" 64 KERNEL=="*[0-9]", ENV{ID_EDD}=="?*", SYMLINK+="disk/by-id/edd-$env{ID_EDD}-part%n" 65 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" 63 KERNEL=="*[!0-9]", IMPORT{program}="edd_id --export $tempnode" 64 KERNEL=="*[!0-9]", ENV{ID_EDD}=="?*", SYMLINK+="disk/by-id/edd-$env{ID_EDD}" 65 KERNEL=="*[0-9]", ENV{ID_EDD}=="?*", SYMLINK+="disk/by-id/edd-$env{ID_EDD}-part%n" 67 66 68 67 LABEL="persistent_storage_end" -
udev/70-device-mapper.rules
r402b0fd r1400499 24 24 25 25 LABEL="device_mapper_do" 26 PROGRAM!="/sbin/dmsetup status -j %M -m %m", GOTO="device_mapper_end"27 RESULT=="|*snapshot*|*error*", GOTO="device_mapper_end"26 PROGRAM!="/sbin/dmsetup status -j %M -m %m", GOTO="device_mapper_end" 27 RESULT=="|*snapshot*|*error*", GOTO="device_mapper_end" 28 28 29 29 IMPORT{program}="vol_id --export $tempnode" 30 ENV{ID_FS_USAGE}=="filesystem|other|crypto", ENV{ID_FS_UUID}=="?*", SYMLINK+="disk/by-uuid/$env{ID_FS_UUID}"31 ENV{ID_FS_USAGE}=="filesystem|other", ENV{ID_FS_LABEL_SAFE}=="?*", SYMLINK+="disk/by-label/$env{ID_FS_LABEL_SAFE}"30 ENV{ID_FS_USAGE}=="filesystem|other|crypto", ENV{ID_FS_UUID}=="?*", SYMLINK+="disk/by-uuid/$env{ID_FS_UUID}" 31 ENV{ID_FS_USAGE}=="filesystem|other", ENV{ID_FS_LABEL_SAFE}=="?*", SYMLINK+="disk/by-label/$env{ID_FS_LABEL_SAFE}" 32 32 33 33 LABEL="device_mapper_end" -
udev/show_event_log
r402b0fd r1400499 1 #!/bin/ sh1 #!/bin/bash 2 2 ######################################################################## 3 3 # … … 30 30 31 31 EXCLUDE_SUBS="acpi cpu edd mem namespace pci_bus tty vc" 32 MESSAGES=${MESSAGES:-/var/log/messages }32 MESSAGES=${MESSAGES:-/var/log/messages.log} 33 33 34 34 show_event() {
Note:
See TracChangeset
for help on using the changeset viewer.