mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 08:56:15 +09:00
cdrom_id: only mark sr[0-9]* as ID_CDROM
we cannot be sure for xvd*
This commit is contained in:
committed by
Martin Pitt
parent
6d80a7e83f
commit
2d01980f1a
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user