chiark / gitweb /
libudev: allow to store negative values in the udev database
[elogind.git] / extras / cdrom_id / 60-cdrom_id.rules
index 12fbf637795f569838ae57aca7e53990e34283b8..a3e8e3c7668faa93224c420db4c43282d352398c 100644 (file)
@@ -1,3 +1,5 @@
-# import optical drive properties
+# do not edit this file, it will be overwritten on update
 
-ACTION=="add|change", KERNEL=="sr[0-9]*|hd[a-z]|pcd[0-9]*", IMPORT{program}="cdrom_id --export $tempnode"
+# import optical drive properties
+ACTION=="add|change", SUBSYSTEM=="block", ENV{DEVTYPE}=="disk", \
+  KERNEL=="sr[0-9]*|hd[a-z]|pcd[0-9]|xvd*", IMPORT{program}="cdrom_id --export $tempnode"