Re: new udev and makedev packages
* Marco d'Itri [Fri, 28 May 2004 01:53:58 +0200]:
> They are available at http://www.bofh.it/~md/debian/.
> *Please* test them before I will upload them to the archive, I want to
> be sure that they will not break.
didn't break anything here.
> * Added a script to create by default a /dev/cdrom symlink, courtesy of
> Michal ?iha?. (Closes: #247179)
if this is intended to create the symlinks without local admin
interaction, it doesn't. note that the line from /etc/udev/udev.rules:
# permissions for IDE CD devices
BUS="ide", KERNEL="*[!0-9]", PROGRAM="/bin/cat /proc/ide/%k/media", RESULT="cdrom*", NAME="%k", MODE="0660", GROUP="cdrom"
appears before:
# /dev/cdrom symlink
BUS="ide", KERNEL="hd[a-z]", PROGRAM="/etc/udev/cdsymlinks.sh %k", SYMLINK="%c{1} %c{2}"
and so always the first rule is applied for devices with media == cdrom.
Attached is a patch that fixes this.
--
Adeodato Simó
EM: asp16 [ykwim] alu.ua.es | PK: DA6AE621
When all is summed up, a man never speaks of himself without loss; his
accusations of himself are always believed; his praises never.
-- Michel de Montaigne
--- udev.rules.orig 2004-05-28 14:31:50.000000000 +0200
+++ udev.rules 2004-05-28 14:41:24.000000000 +0200
@@ -12,8 +12,8 @@
# %% - the '%' char itself.
#
-# permissions for IDE CD devices
-BUS="ide", KERNEL="*[!0-9]", PROGRAM="/bin/cat /proc/ide/%k/media", RESULT="cdrom*", NAME="%k", MODE="0660", GROUP="cdrom"
+# permissions and symlinks for IDE CD devices
+BUS="ide", KERNEL="*[!0-9]", PROGRAM="/etc/udev/cdsymlinks.sh %k", RESULT="cdrom*", NAME="%k", MODE="0660", GROUP="cdrom", SYMLINK="%c{1} %c{2}"
# permissions for IDE floppy devices
BUS="ide", KERNEL="*[!0-9]", PROGRAM="/bin/cat /proc/ide/%k/media", RESULT="floppy*", NAME="%k", MODE="0660", GROUP="floppy"
@@ -21,9 +21,6 @@
# permissions for SCSI sg devices
BUS="scsi", KERNEL="s[grt][0-9]*", SYSFS_type="5", NAME="%k", MODE="0660", GROUP="cdrom"
-# /dev/cdrom symlink
-BUS="ide", KERNEL="hd[a-z]", PROGRAM="/etc/udev/cdsymlinks.sh %k", SYMLINK="%c{1} %c{2}"
-
# USB devices
BUS="usb", KERNEL="hiddev*", NAME="usb/%k"
BUS="usb", KERNEL="auer*", NAME="usb/%k"
Reply to: