]> err.no Git - systemd/commitdiff
rules: restore rule to set cdrom group for optical drives
authorKay Sievers <kay.sievers@vrfy.org>
Sun, 6 Nov 2011 22:30:31 +0000 (23:30 +0100)
committerKay Sievers <kay.sievers@vrfy.org>
Sun, 6 Nov 2011 22:30:31 +0000 (23:30 +0100)
On Sun, Nov 6, 2011 at 21:45, William Hubbs <w.d.hubbs@gmail.com> wrote:
> someone on gentoo just reported to me that the following rule has been
> deleted from udev-174, which is leaving his optical devices in the
> standard "disk" group. He does not want to add his users to this group.

rules/rules.d/50-udev-default.rules

index b31ac42ab7dac64f8073850738b5792bd0d7016b..3ef6783037c973aa3558ebb0d41559ebf83b0f99 100644 (file)
@@ -70,6 +70,7 @@ SUBSYSTEM=="block", GROUP="disk"
 SUBSYSTEM=="block", KERNEL=="fd[0-9]", GROUP="floppy"
 
 # cdrom
+SUBSYSTEM=="block", KERNEL=="sr[0-9]*". GROUP="cdrom"
 SUBSYSTEM=="scsi_generic", SUBSYSTEMS=="scsi", ATTRS{type}=="4|5", GROUP="cdrom"
 KERNEL=="pktcdvd[0-9]*", GROUP="cdrom"
 KERNEL=="pktcdvd", GROUP="cdrom"