/srv/irclogs.ubuntu.com/2018/04/12/#ubuntu-kernel.txt

=== himcesjf_ is now known as him-cesjf
WhoopieHi, LocutusOfBorg asked me to address a current issue here: the kernel now has the modules for a Virtualbox guest included by default. What is missing, is the udev rule which is part of the virtualbox-guest-dkms package. I recommended to put it into the virtualbox-guest-x11 or virtualbox-guest-utils package. What's your opinion on that?10:52
TJ-Whoopie: it doesn't sound like something for the -x11 package, that's GUI/X-server specific isn't it?10:54
Whoopieyes10:54
Whoopiethere're the libraries for 3D acceleration and some config files.10:54
WhoopieTJ-: in the virtualbox-guest-utils package, there's also /sbin/mount.vboxsf, which doesn't work properly without the udev rules.10:55
TJ-Whoopie: that seems to seal the decision then :)10:56
Whoopieor put the udev rule into the kernel package?10:56
TJ-I don't think so - the linux-image-* packages don't carry any udev rules currently10:57
LocutusOfBorgproblem is the dependency chain10:58
LocutusOfBorgdpkg depends on utils, not the opposite10:58
TJ- is it for /lib/udev/rules.d/60-virtualbox.rules ?10:59
WhoopieTJ-: /lib/udev/rules.d/60-virtualbox-guest-dkms.rules10:59
WhoopieLocutusOfBorg: but -x11 depends on -utils, so it's always installed.10:59
TJ-dpkg depends on it?11:01
LocutusOfBorgpeople might have the utils without x11 and without dkms11:02
TJ-oh, DKMS not dpkg you meant?11:03
LocutusOfBorgyep11:03
LocutusOfBorgvirtualbox-guest-dkms11:03
WhoopieLocutusOfBorg: then it doesn't hurt at all.11:04
TJ-hang on, if the kernel module is now in the linux-image then is there any need for virtualboc-guest-dkms at all? ?11:06
LocutusOfBorgTJ-, probably none, except for udev11:08
TJ-I don't see anything in the virtualbox-guest-dkms other than the udev rule that needs relocating, so that package could become virtual/meta(?) if the udev rule moved to virtualbox-guest-utils. 11:10
LocutusOfBorgwell, I don't usually trust the module on the kernel, I mean, kernel updates might break stuff, I prefer to have the possibility to choose my version in case of issues11:11
LocutusOfBorgthe kernel modules are not mainline, they are updated from time to time11:11
TJ-My observations - probably needs someone more aware of the intricacies of package reorg than me, but I don't think the udev rule belongs in the linuximage package - certainly no others are currently11:12
TJ-LocutusOfBorg: ahh, i see, so just move the udev rule to virtualbox-guest-utils and keep guest-dkms as is otherwise11:12
TJ-if v-g-d gets installed on it's own with no other VB guest packages that's just the same as having linux-image-* installed; the udev rule is only required when of the v-g-{utils,x11} packages is installed, and -x1ll depends on -utils, so that sounds correct11:15
TJ-s/when of/when one of/11:15
LocutusOfBorgso x11 depends on utils, utils depends on dkms/source/virtual meta package11:16
LocutusOfBorgand the dkmd itself doesn't depend on anything else11:16
LocutusOfBorg*dkms11:16
LocutusOfBorgbecause also guest-source might provide kernel modules11:16
LocutusOfBorg"virtualbox-guest-modules" is provided by virtualbox-guest-dkms, virtualbox-guest-source -> (the deb created after the build), and the one provided by src:linux11:17
TJ-how will it work if the -dkms is installed - the kernel will have 2 identical modules, does modprobe know to prefer the /lib/modules/*/updates/dkms/ path to /lib/modules/*/kernel/ ?11:17
LocutusOfBorgyes the kernel will prefer the updates11:17
LocutusOfBorgI also patched dkms to not error out in case there is already one installed11:18
LocutusOfBorghttps://launchpad.net/ubuntu/+source/dkms/2.3-3ubuntu511:18
TJ-how does depmod handle that? there'll be 2 modules with identical symbols/aliases won't there?11:19
LocutusOfBorgthe updates version is preferred, depmod knows that newer kernel modules might appear11:20
LocutusOfBorgwe hacked some versioning inside the module, to make them differ in version11:20
LocutusOfBorgthat dkms upload was to fix exactly that versioning check11:20
TJ-yeah, just been playing about with it to check11:25
LocutusOfBorghttp://debomatic-amd64.debian.net/distribution#unstable/virtualbox/5.2.8-dfsg-7/buildlog11:26
LocutusOfBorglet me see11:26
LocutusOfBorgWhoopie, TJ- uploaded in unstable, will sync in Ubuntu if nobody complains12:40
LocutusOfBorgthanks for your help!12:40
LocutusOfBorghttps://anonscm.debian.org/cgit/pkg-virtualbox/virtualbox.git/commit/?id=a58ce37a83a281baa85db238d28e6bc82b49114c12:40
LocutusOfBorgthis is the diff12:40
LocutusOfBorgfortunately the udev rules has packagename in filename, so the mangling avoids me to add breaks+replaces13:02
LocutusOfBorgapw, ^^ so now we should have fixed that issue in the kernel13:05
LocutusOfBorgthanks to Whoopie and TJ- :)13:05
apwLocutusOfBorg, sounds good, i think13:05
WhoopieLocutusOfBorg: thank you!!!14:16
WhoopieLocutusOfBorg: "Make the guest-utils depends on dkms not vice-versa" -> so -utils always installs -dkms?14:18
LocutusOfBorgnope, utils depends on -dkms | -source | virtual version provided by dkms or source or kernel14:23
LocutusOfBorgvirtualbox-guest-dkms (= ${source:Version}) | virtualbox-guest-source (= ${source:Version}) | virtualbox-guest-modules,14:23
LocutusOfBorgthi is the dependency14:23
LocutusOfBorgactually I could even remove and just depend on "virtualbox-guest-modules", because it is already provided by dkms14:24
LocutusOfBorgthe problem is that installing guest-source is not sufficient to have a kernel module14:24
LocutusOfBorgyou have to install guest-source, use module-assistant to build a custom .deb kernel module file, and then dpkg -i it (and this custom deb has the "Provide: virtualbox-guest-modules" )14:24
LocutusOfBorgso, depending on guest-source is theoretically wrong14:25
Whoopieok, thanks for the explanation.14:25
LocutusOfBorgbut I couldn't find a better 14:25
s10gopaljsalisbury, tworevert is bad15:18
=== Elimin8r is now known as Elimin8er
phil42if bionic will be on kernel 4.15,  why wasn't a longterm kernel chosen?22:49
TJ-phil42: because the mainline release cadence doesn't match Ubuntu releases.23:13
* trippeh_ mumbles something about people wanting support for the latest radeons and stuff23:17
phil42it just seems to me like letting the kroah-hartman et al backport the fixes would be better23:45
TJ-The kernel team already does that and a lot more23:52

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!