Ticket #1804: udev-config.diff

File udev-config.diff, 2.3 KB (added by alexander@…, 18 years ago)

Desired changes to udev config

  • 25-lfs.rules

    diff -urN udev-config-20060607-try2/25-lfs.rules udev-config-20060712/25-lfs.rules
    old new  
    121121# dmsetup and lvm2 related programs create devicemapper devices so we prevent
    122122# udev from creating them
    123123
    124 KERNEL=="dm-*",                                         NAME=""
     124KERNEL=="dm-*",                                         OPTIONS+="ignore_device"
     125KERNEL=="device-mapper",                                OPTIONS+="ignore_device"
    125126
    126127KERNEL=="ht[0-9]*",                     GROUP="tape"
    127128KERNEL=="nht[0-9]*",                    GROUP="tape"
  • 81-cdrom.rules

    diff -urN udev-config-20060607-try2/81-cdrom.rules udev-config-20060712/81-cdrom.rules
    old new  
     1# /etc/udev/rules.d/81-cdrom.rules: Set CD-ROM permissions.
     2
     3ACTION=="add", SUBSYSTEM=="block", ENV{ID_TYPE}=="cd", GROUP="cdrom"
  • contrib/debian/81-cdrom.rules

    diff -urN udev-config-20060607-try2/contrib/debian/81-cdrom.rules udev-config-20060712/contrib/debian/81-cdrom.rules
    old new  
    1 # /etc/udev/rules.d/81-cdrom.rules: Generate rules for newly-added CD drives.
     1# /etc/udev/rules.d/81-cdrom.rules: Set CD-ROM permissions and get device capabilities
    22
    3 ACTION=="add", ENV{ID_TYPE}=="cd", IMPORT{program}="cdrom_id --export $tempnode", GROUP="cdrom"
     3ACTION=="add", SUBSYSTEM=="block", ENV{ID_TYPE}=="cd", IMPORT{program}="cdrom_id --export $tempnode", GROUP="cdrom"
  • contrib/debian/write_cd_aliases

    diff -urN udev-config-20060607-try2/contrib/debian/write_cd_aliases udev-config-20060712/contrib/debian/write_cd_aliases
    old new  
    6868  fi
    6969
    7070  [ "$comment" ] && echo "# $comment"
    71   echo "ACTION==\"add\", $match, ENV{ID_CDROM}==\"1\", SYMLINK+=\"$link\", ENV{GENERATED}=\"1\""
     71  echo "ACTION==\"add\", SUBSYSTEM==\"block\", $match, ENV{ID_CDROM}==\"1\", SYMLINK+=\"$link\", ENV{GENERATED}=\"1\""
    7272  } >> $RULES_FILE
    7373  SYMLINKS="$SYMLINKS $link"
    7474}