Source: systemd
Version: 232-20
Severity: normal
Tags: patch
User: [email protected]
Usertags: sparc64
Hi!
When installing Debian inside a SPARC LDOM virtual machine, d-i
is unable to detect any virtual CD-ROM drives when scanning for
the installation media.
debian-installer uses 'udevadm info' to check which of the available
block devices are actually CD drives for which the 60-cdrom_id.rules
rules file applies. See the discussion in [1].
Since 60-cdrom_id.rules has a whitelist for the block devices it
checks, we need to add "vdisk*" to the whitelist so that udev
will also scan the vdisk block devices found inside a SPARC
LDOM virtual machine.
Thus, could you please add "vdisk*" to the whitelist in the
60-cdrom_id.rules file so that debian-installer detects the
virtual CD-ROM drives inside a SPARC LDOM?
The attached patch is enough.
Thanks,
Adrian
> [1] https://lists.debian.org/debian-sparc/2017/03/msg00050.html
> [2] https://github.com/systemd/systemd/pull/5599
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer - [email protected]
`. `' Freie Universitaet Berlin - [email protected]
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
diff -Nru old/systemd-233/rules/60-cdrom_id.rules
new/systemd-233/rules/60-cdrom_id.rules
--- old/systemd-233/rules/60-cdrom_id.rules 2017-03-01 22:43:06.000000000
+0100
+++ new/systemd-233/rules/60-cdrom_id.rules 2017-03-17 11:36:29.952543056
+0100
@@ -2,7 +2,7 @@
ACTION=="remove", GOTO="cdrom_end"
SUBSYSTEM!="block", GOTO="cdrom_end"
-KERNEL!="sr[0-9]*|xvd*", GOTO="cdrom_end"
+KERNEL!="sr[0-9]*|vdisk*|xvd*", GOTO="cdrom_end"
ENV{DEVTYPE}!="disk", GOTO="cdrom_end"
# unconditionally tag device as CDROM