diff options
author | Harald Hoyer <harald@redhat.com> | 2010-04-27 12:26:00 +0200 |
---|---|---|
committer | Martin Pitt <martin.pitt@ubuntu.com> | 2010-05-04 09:09:32 +0200 |
commit | 2d01980f1afbde8aabd175a5d866a8eeccc29208 (patch) | |
tree | 3efbd1b2fb0b1f03bdf52b12281e1f4deb59f998 /extras/cdrom_id | |
parent | 6d80a7e83f55c7319d1cb9b0a9910a005b2f4103 (diff) |
cdrom_id: only mark sr[0-9]* as ID_CDROM
we cannot be sure for xvd*
Diffstat (limited to 'extras/cdrom_id')
-rw-r--r-- | extras/cdrom_id/60-cdrom_id.rules | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extras/cdrom_id/60-cdrom_id.rules b/extras/cdrom_id/60-cdrom_id.rules index 16b3af9e92..b3109f1d01 100644 --- a/extras/cdrom_id/60-cdrom_id.rules +++ b/extras/cdrom_id/60-cdrom_id.rules @@ -5,7 +5,7 @@ SUBSYSTEM!="block", GOTO="cdrom_end" KERNEL!="sr[0-9]*|xvd*", GOTO="cdrom_end" ENV{DEVTYPE}!="disk", GOTO="cdrom_end" -ENV{ID_CDROM}="1" +KERNEL=="sr[0-9]*", ENV{ID_CDROM}="1" IMPORT{program}="cdrom_id --export $tempnode" LABEL="cdrom_end" |