mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-02-26 09:57:26 +03:00
cdrom_id: add Xen cdrom support
This commit is contained in:
parent
09b2999210
commit
55d8f5e208
@ -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"
|
||||||
|
@ -567,10 +567,8 @@ int main(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* check drive */
|
/* check drive */
|
||||||
if (cd_inquiry(udev, fd) < 0) {
|
if (cd_inquiry(udev, fd) < 0)
|
||||||
rc = 2;
|
goto print;
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* read drive and possibly current profile */
|
/* read drive and possibly current profile */
|
||||||
if (cd_profiles(udev, fd) < 0)
|
if (cd_profiles(udev, fd) < 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user