diff options
Diffstat (limited to 'source/a/udev/config/rules.d')
-rw-r--r-- | source/a/udev/config/rules.d/59-non-libata-devices.rules | 44 | ||||
-rw-r--r-- | source/a/udev/config/rules.d/65-permissions.rules | 11 |
2 files changed, 44 insertions, 11 deletions
diff --git a/source/a/udev/config/rules.d/59-non-libata-devices.rules b/source/a/udev/config/rules.d/59-non-libata-devices.rules new file mode 100644 index 00000000..4b1238a4 --- /dev/null +++ b/source/a/udev/config/rules.d/59-non-libata-devices.rules @@ -0,0 +1,44 @@ +# Support for the deprecated IDE devices has been removed from the +# default set of rules shipped with udev, but some administrators +# might want (or need) the old ata drivers and thus build a custom +# kernel, so we'll carry these on our own for now... + +############################################################################# + +# Old 50-udev-default.rules + +# floppy +KERNEL=="hd*", SUBSYSTEMS=="ide", ATTRS{media}=="floppy" + +# cdrom +SUBSYSTEM=="block", KERNEL=="hd*", SUBSYSTEMS=="ide", ATTRS{media}=="cdrom", GROUP="cdrom" + +############################################################################# + +# Old 60-persistent-storage.rules + +# never access non-cdrom removable ide devices, the drivers are causing event loops on open() +KERNEL=="hd*[!0-9]", ATTR{removable}=="1", SUBSYSTEMS=="ide", ATTRS{media}=="disk|floppy", GOTO="old_persistent_storage_end" +KERNEL=="hd*[0-9]", ATTRS{removable}=="1", GOTO="old_persistent_storage_end" + +# by-id (hardware serial number) +KERNEL=="hd*[!0-9]", IMPORT{program}="ata_id --export $tempnode" +KERNEL=="hd*[!0-9]", ENV{ID_SERIAL}=="?*", SYMLINK+="disk/by-id/ata-$env{ID_SERIAL}" +KERNEL=="hd*[0-9]", ENV{ID_SERIAL}=="?*", SYMLINK+="disk/by-id/ata-$env{ID_SERIAL}-part%n" + +LABEL="old_persistent_storage_end" + +############################################################################# + +# Old ide stuff from our custom 65-permissions.rules + +# permissions for IDE floppy devices +KERNEL=="hd*[!0-9]", SUBSYSTEMS=="ide", ATTRS{media}=="floppy", SYMLINK+="floppy floppy-%k" +KERNEL=="hd*[0-9]", ATTRS{media}=="floppy", ATTRS{removable}=="1", SYMLINK+="floppy-%k" + +# put all removable devices in group "plugdev" +KERNEL=="hd*[!0-9]", ATTR{removable}=="1", GROUP="plugdev" +KERNEL=="hd*[0-9]", ATTRS{removable}=="1", GROUP="plugdev" + +############################################################################# + diff --git a/source/a/udev/config/rules.d/65-permissions.rules b/source/a/udev/config/rules.d/65-permissions.rules index b0cfb259..6f82b0f3 100644 --- a/source/a/udev/config/rules.d/65-permissions.rules +++ b/source/a/udev/config/rules.d/65-permissions.rules @@ -12,15 +12,7 @@ # all disks with group disk KERNEL!="fd*", SUBSYSTEM=="block", GROUP="disk" -# permissions for IDE floppy devices -KERNEL=="hd*[!0-9]", SUBSYSTEMS=="ide", ATTRS{media}=="floppy", \ - SYMLINK+="floppy floppy-%k", OPTIONS+="ignore_remove" -KERNEL=="hd*[0-9]", ATTRS{media}=="floppy", ATTRS{removable}=="1", \ - SYMLINK+="floppy-%k", OPTIONS+="ignore_remove" - # put all removable devices in group "plugdev" -KERNEL=="hd*[!0-9]", ATTR{removable}=="1", GROUP="plugdev" -KERNEL=="hd*[0-9]", ATTRS{removable}=="1", GROUP="plugdev" KERNEL=="sd*[!0-9]", ATTR{removable}=="1", GROUP="plugdev" KERNEL=="sd*[0-9]", ATTRS{removable}=="1", GROUP="plugdev" @@ -44,9 +36,6 @@ SUBSYSTEMS=="scsi", KERNEL=="s[gt][0-9]*", ATTRS{type}=="5", \ # Make DRI video devices usable by anyone in group "video": KERNEL=="card[0-9]*",GROUP:="video" -# alsa devices -SUBSYSTEM=="sound", GROUP="audio" - # Make the real time clock readable by all, and writable by root: KERNEL=="rtc|rtc0", MODE="0644" |