Changeset 1400499


Ignore:
Timestamp:
Sep 10, 2006, 3:57:17 PM (18 years ago)
Author:
Jim Gifford <clfs@…>
Branches:
clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
Children:
9aa77af
Parents:
402b0fd
Message:

Updated to current standards

Location:
udev
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • udev/60-persistent-disk.rules

    r402b0fd r1400499  
    2222
    2323# skip rules for inappropriate block devices
    24 KERNEL=="ram*|loop*|fd*|nbd*",  GOTO="persistent_storage_end"
     24KERNEL=="ram*|loop*|fd*|nbd*|dm-*", GOTO="persistent_storage_end"
    2525
    2626# Set Permissions on CDOM
     
    2828
    2929# 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"
     30KERNEL=="hd*[!0-9]",    ATTRS{removable}=="1", DRIVERS=="ide-cs|ide-floppy", GOTO="persistent_storage_end"
     31KERNEL=="hd*[0-9]",     ATTRS{../removable}=="1", GOTO="persistent_storage_end"
     32
     33# for partitions import parent information
     34KERNEL=="*[0-9]", IMPORT{parent}=="ID_*"
    3235
    3336# by-id (hardware serial number)
     
    3639KERNEL=="hd*[0-9]",     IMPORT{parent}=="ID_*", SYMLINK+="disk/by-id/ata-$env{ID_MODEL}_$env{ID_SERIAL}-part%n"
    3740
    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"
     41KERNEL=="sd*[!0-9]|sr*|st*",            ATTRS{ieee1394_id}=="*", ENV{ID_SERIAL}="$attr{ieee1394_id}", ENV{ID_BUS}="ieee1394"
     42KERNEL=="sd*[!0-9]|sr*|st*",            ENV{ID_SERIAL}=="", IMPORT{program}="usb_id -x"
     43KERNEL=="sd*[!0-9]|sr*|st*",            ENV{ID_SERIAL}=="", IMPORT{program}="scsi_id -g -x -s %p -d $tempnode"
     44KERNEL=="sd*[!0-9]|sr*|st*",            ENV{ID_SERIAL}=="", IMPORT{program}="scsi_id -g -x -a -s %p -d $tempnode"
     45KERNEL=="dasd*[!0-9]",                  IMPORT{program}="dasd_id --export $tempnode"
     46KERNEL=="sd*[!0-9]|sr*|dasd*[!0-9]",    ENV{ID_SERIAL}=="?*", SYMLINK+="disk/by-id/$env{ID_BUS}-$env{ID_SERIAL}"
     47KERNEL=="sd*[0-9]|dasd*[0-9]",          ENV{ID_SERIAL}=="?*", SYMLINK+="disk/by-id/$env{ID_BUS}-$env{ID_SERIAL}-part%n"
     48KERNEL=="st*",                          ENV{ID_SERIAL}=="?*", SYMLINK+="tape/by-id/$env{ID_BUS}-$env{ID_SERIAL}"
    4849
    4950# 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=="sr*",          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"
     51KERNEL=="*[!0-9]|sr*",  IMPORT{program}="path_id %p", SYMLINK+="disk/by-path/$env{ID_PATH}"
     52KERNEL=="st*",          IMPORT{program}="path_id %p", SYMLINK+="tape/by-path/$env{ID_PATH}"
     53KERNEL=="sr*|st*",      GOTO="persistent_storage_end"
     54KERNEL=="*[0-9]",       ENV{ID_PATH}=="?*", SYMLINK+="disk/by-path/$env{ID_PATH}-part%n"
    5455
    5556# by-label/by-uuid (filesystem properties)
    56 KERNEL=="*[!0-9]",              ATTRS{removable}=="1", GOTO="persistent_storage_end"
     57KERNEL=="*[!0-9]",                              ATTR{removable}=="1", GOTO="persistent_storage_end"
    5758IMPORT{program}="vol_id --export $tempnode"
    58 ENV{ID_FS_UUID}=="?*",          SYMLINK+="disk/by-uuid/$env{ID_FS_UUID}"
    59 ENV{ID_FS_LABEL_SAFE}=="?*",    SYMLINK+="disk/by-label/$env{ID_FS_LABEL_SAFE}"
     59ENV{ID_FS_USAGE}=="filesystem|other|crypto",    ENV{ID_FS_UUID}=="?*", SYMLINK+="disk/by-uuid/$env{ID_FS_UUID}"
     60ENV{ID_FS_USAGE}=="filesystem|other",           ENV{ID_FS_LABEL_SAFE}=="?*", SYMLINK+="disk/by-label/$env{ID_FS_LABEL_SAFE}"
    6061
    6162# 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"
     63KERNEL=="*[!0-9]",      IMPORT{program}="edd_id --export $tempnode"
     64KERNEL=="*[!0-9]",      ENV{ID_EDD}=="?*", SYMLINK+="disk/by-id/edd-$env{ID_EDD}"
     65KERNEL=="*[0-9]",       ENV{ID_EDD}=="?*", SYMLINK+="disk/by-id/edd-$env{ID_EDD}-part%n"
    6766
    6867LABEL="persistent_storage_end"
  • udev/70-device-mapper.rules

    r402b0fd r1400499  
    2424
    2525LABEL="device_mapper_do"
    26 PROGRAM!="/sbin/dmsetup status -j %M -m %m", GOTO="device_mapper_end"
    27 RESULT=="|*snapshot*|*error*", GOTO="device_mapper_end"
     26PROGRAM!="/sbin/dmsetup status -j %M -m %m",    GOTO="device_mapper_end"
     27RESULT=="|*snapshot*|*error*",                  GOTO="device_mapper_end"
    2828
    2929IMPORT{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}"
     30ENV{ID_FS_USAGE}=="filesystem|other|crypto",    ENV{ID_FS_UUID}=="?*", SYMLINK+="disk/by-uuid/$env{ID_FS_UUID}"
     31ENV{ID_FS_USAGE}=="filesystem|other",           ENV{ID_FS_LABEL_SAFE}=="?*", SYMLINK+="disk/by-label/$env{ID_FS_LABEL_SAFE}"
    3232
    3333LABEL="device_mapper_end"
  • udev/show_event_log

    r402b0fd r1400499  
    1 #!/bin/sh
     1#!/bin/bash
    22########################################################################
    33#
     
    3030
    3131EXCLUDE_SUBS="acpi cpu edd mem namespace pci_bus tty vc"
    32 MESSAGES=${MESSAGES:-/var/log/messages}
     32MESSAGES=${MESSAGES:-/var/log/messages.log}
    3333
    3434show_event() {
Note: See TracChangeset for help on using the changeset viewer.