Author: dnicholson
Date: 2006-07-12 07:54:53 -0600 (Wed, 12 Jul 2006)
New Revision: 7658
Added:
trunk/udev-config/81-cdrom.rules
Modified:
trunk/udev-config/25-lfs.rules
trunk/udev-config/CHANGELOG
trunk/udev-config/contrib/debian/81-cdrom.rules
trunk/udev-config/contrib/debian/write_cd_aliases
Log:
Fixes for cdrom and device-mapper rules.
Modified: trunk/udev-config/25-lfs.rules
===================================================================
--- trunk/udev-config/25-lfs.rules 2006-07-12 13:25:33 UTC (rev 7657)
+++ trunk/udev-config/25-lfs.rules 2006-07-12 13:54:53 UTC (rev 7658)
@@ -121,7 +121,8 @@
# dmsetup and lvm2 related programs create devicemapper devices so we prevent
# udev from creating them
-KERNEL=="dm-*", NAME=""
+KERNEL=="dm-*", OPTIONS+="ignore_device"
+KERNEL=="device-mapper", OPTIONS+="ignore_device"
KERNEL=="ht[0-9]*", GROUP="tape"
KERNEL=="nht[0-9]*", GROUP="tape"
Added: trunk/udev-config/81-cdrom.rules
===================================================================
--- trunk/udev-config/81-cdrom.rules (rev 0)
+++ trunk/udev-config/81-cdrom.rules 2006-07-12 13:54:53 UTC (rev 7658)
@@ -0,0 +1,3 @@
+# /etc/udev/rules.d/81-cdrom.rules: Set CD-ROM permissions.
+
+ACTION=="add", SUBSYSTEM=="block", ENV{ID_TYPE}=="cd", GROUP="cdrom"
Modified: trunk/udev-config/CHANGELOG
===================================================================
--- trunk/udev-config/CHANGELOG 2006-07-12 13:25:33 UTC (rev 7657)
+++ trunk/udev-config/CHANGELOG 2006-07-12 13:54:53 UTC (rev 7658)
@@ -1,3 +1,9 @@
+n/a - Jul 12, 2006
+ * Added options so temporary nodes are not created with device-mapper
+ * Adapted cdrom rules to identify CD-ROM drives correctly by adding
+ SUBSYSTEM=="block" test.
+ * Added simple 81-cdrom.rules file to set cdrom group ownership
+
n/a - Jun 07, 2006
* Removed nvidia rules
* Removed bug reporting rule
Modified: trunk/udev-config/contrib/debian/81-cdrom.rules
===================================================================
--- trunk/udev-config/contrib/debian/81-cdrom.rules 2006-07-12 13:25:33 UTC
(rev 7657)
+++ trunk/udev-config/contrib/debian/81-cdrom.rules 2006-07-12 13:54:53 UTC
(rev 7658)
@@ -1,3 +1,3 @@
-# /etc/udev/rules.d/81-cdrom.rules: Generate rules for newly-added CD drives.
+# /etc/udev/rules.d/81-cdrom.rules: Set CD-ROM permissions and get device
capabilities
-ACTION=="add", ENV{ID_TYPE}=="cd", IMPORT{program}="cdrom_id --export
$tempnode", GROUP="cdrom"
+ACTION=="add", SUBSYSTEM=="block", ENV{ID_TYPE}=="cd",
IMPORT{program}="cdrom_id --export $tempnode", GROUP="cdrom"
Modified: trunk/udev-config/contrib/debian/write_cd_aliases
===================================================================
--- trunk/udev-config/contrib/debian/write_cd_aliases 2006-07-12 13:25:33 UTC
(rev 7657)
+++ trunk/udev-config/contrib/debian/write_cd_aliases 2006-07-12 13:54:53 UTC
(rev 7658)
@@ -68,7 +68,7 @@
fi
[ "$comment" ] && echo "# $comment"
- echo "ACTION==\"add\", $match, ENV{ID_CDROM}==\"1\", SYMLINK+=\"$link\",
ENV{GENERATED}=\"1\""
+ echo "ACTION==\"add\", SUBSYSTEM==\"block\", $match, ENV{ID_CDROM}==\"1\",
SYMLINK+=\"$link\", ENV{GENERATED}=\"1\""
} >> $RULES_FILE
SYMLINKS="$SYMLINKS $link"
}
--
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page