[Pkg-virtualbox-devel] Bug#796706: virtualbox-guest-x11: Has init script in runlevel S but no matching service file

Felipe Sateler fsateler at debian.org
Mon Dec 28 17:19:16 UTC 2015


On 28 December 2015 at 13:54, Gianfranco Costamagna
<locutusofborg at debian.org> wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> Hi Felipe,
>
> thanks a lot for the patch!
>
> >> % modinfo vboxvideo | grep alias alias:
> >> pci:v000080EEd0000BEEFsv*sd*bc*sc*i*
> >>
> >> This means the init script is unnecessary, as it will be
> >> autoloaded by the kernel when the right device is present. I have
> >> tested this works even on jessie.
> >>
> >> Please remove it. Attached is an (untested) patch that
> >>
> >> - removes the init script - makes sure that the conffile is
> >> removed on upgrade - removes the symlink farm on upgrade
>
> I applied this, even if I don't understand two things:
>
> from rules file:
> ifeq ($(DIST_NAME),Ubuntu)
>         echo
> "modaliases=vboxguest(pci:v000080EEd0000CAFEsv00000000sd00000000bc*sc*i*
> )"
> >> debian/$(gdkms).substvars
>         echo
> "modaliases=vboxx11(pci:v000080EEd0000BEEFsv00000000sd00000000bc*sc*i*)"
> >> debian/$(uxname).substvars
> endif
>
> so how Debian gets the alias? (or is this something unrelated, e.g.
> because Ubuntu ships the kernel module also inside the kernel package?)

This adds the (byhand-copied) modalias in debian/control:
XB-Modaliases: ${modaliases}. I do not find this header on a Debian
Packages file, but my guess is that this information is somehow used
to suggest the user that they install the relevant dkms package when
the hardware is available but no module handles it (eg, suggest
installing virtualbox-guest-x11 when running inside a virtualbox vm,
or the non-free driver for a video card).

It seems a similar scheme can be implemented in debian using appstream
and isenkram, but I have not tried it:
http://people.skolelinux.org/pere/blog/Using_appstream_with_isenkram_to_install_hardware_related_packages_in_Debian.html

> >>
> >> (BTW, I think the vb-guest-utils init script could be similarly
> >> redundant, but I have not tested).
>
> I checked it. it seems to modprobe the vboxsf kernel module, but a
> modinfo vboxsf |grep alias
> returned nothing.
>
> can you please enlighten me also on this?

I'm sorry, I don't know what the different modules do. However, if the
vboxsf modalias is empty, then the -utils init script would still be
required, as it would not be autoloaded by the kernel.

>
> thanks a lot

Thanks to you!


-- 

Saludos,
Felipe Sateler



More information about the Pkg-virtualbox-devel mailing list