mirror of
https://github.com/systemd/systemd.git
synced 2025-03-22 06:50:18 +03:00
cdrom_id: READ TOC before READ DISC INFORMATION fixes qemu
This commit is contained in:
parent
36b6aca5c1
commit
1b3b6c2df7
@ -868,14 +868,14 @@ int main(int argc, char *argv[])
|
||||
if (cd_profiles(udev, fd) < 0)
|
||||
goto print;
|
||||
|
||||
/* get writable media state */
|
||||
if (cd_media_info(udev, fd) < 0)
|
||||
goto print;
|
||||
|
||||
/* get session/track info */
|
||||
if (cd_media_toc(udev, fd) < 0)
|
||||
goto print;
|
||||
|
||||
/* get writable media state */
|
||||
if (cd_media_info(udev, fd) < 0)
|
||||
goto print;
|
||||
|
||||
print:
|
||||
printf("ID_CDROM=1\n");
|
||||
if (cd_cd_rom)
|
||||
|
Loading…
x
Reference in New Issue
Block a user