FS#48580 - [dkms] hook script exit too soon
Attached to Project:
Arch Linux
Opened by Dima Q (dimaqq) - Monday, 14 March 2016, 14:03 GMT
Last edited by Sébastien Luttringer (seblu) - Tuesday, 15 March 2016, 23:15 GMT
Opened by Dima Q (dimaqq) - Monday, 14 March 2016, 14:03 GMT
Last edited by Sébastien Luttringer (seblu) - Tuesday, 15 March 2016, 23:15 GMT
|
Details
Description:
Old kernel modules (in /lib/modules) break dkms for virtualbox host module even for new, working kernel. (I keep modules and old kernel images for system rescue, but I didn't think to keep old header files) Additional info: community/virtualbox 5.0.16-3 [installed] community/virtualbox-host-dkms 5.0.16-3 [installed] core/linux 4.4.5-1 (base) [installed] core/linux-headers 4.4.5-1 [installed] extra/dkms 2.2.0.3+git151023-8 [installed] Steps to reproduce: * unpack /lib/modules/4.3.3-2-ARCH/ from old kernel package * pacman -S virtualbox-host-dkms dkms fails with "Kernel 4.3.3-2-ARCH headers are missing. Nothing will be done for this kernel!" dkms is *NOT* built for 4.4.5-1-ARCH package installation succeeds IMO dkms should not stop after 1st kernel, it should try to build for each entry in /lib/modues |
This task depends upon
Closed by Sébastien Luttringer (seblu)
Tuesday, 15 March 2016, 23:15 GMT
Reason for closing: Fixed
Additional comments about closing: 2.2.0.3+git151023-9
Tuesday, 15 March 2016, 23:15 GMT
Reason for closing: Fixed
Additional comments about closing: 2.2.0.3+git151023-9
Script is currently running dkms for each installed kernel with headers. It doesn't stop when one fails.
:::log
[2016-03-14 09:57] [PACMAN] Running 'pacman -S virtualbox virtualbox-host-dkms'
[2016-03-14 09:57] [ALPM] running '70-dkms-remove.hook'...
[2016-03-14 09:57] [ALPM-SCRIPTLET] ==> Kernel 4.3.3-2-ARCH headers are missing. Nothing will be done for this kernel!
[2016-03-14 09:57] [ALPM-SCRIPTLET] ==> You have to install the matching kernel headers package to use dkms
[2016-03-14 09:57] [ALPM] transaction started
[2016-03-14 09:57] [ALPM] reinstalled virtualbox-host-dkms (5.0.16-3)
[2016-03-14 09:57] [ALPM] reinstalled virtualbox (5.0.16-3)
[2016-03-14 09:57] [ALPM] transaction completed
[2016-03-14 09:57] [ALPM] running '70-dkms-install.hook'...
[2016-03-14 09:57] [ALPM-SCRIPTLET] ==> Kernel 4.3.3-2-ARCH headers are missing. Nothing will be done for this kernel!
[2016-03-14 09:57] [ALPM-SCRIPTLET] ==> You have to install the matching kernel headers package to use dkms
And this is how it looks without:
:::log
[2016-03-14 14:57] [PACMAN] Running 'pacman -S virtualbox-host-dkms'
[2016-03-14 14:57] [ALPM] running '70-dkms-remove.hook'...
[2016-03-14 14:57] [ALPM] transaction started
[2016-03-14 14:57] [ALPM] reinstalled virtualbox-host-dkms (5.0.16-3)
[2016-03-14 14:57] [ALPM] transaction completed
[2016-03-14 14:57] [ALPM] running '70-dkms-install.hook'...
[2016-03-14 14:57] [ALPM-SCRIPTLET]
[2016-03-14 14:57] [ALPM-SCRIPTLET] Creating symlink /var/lib/dkms/vboxhost/5.0.16_OSE/source ->
[2016-03-14 14:57] [ALPM-SCRIPTLET] /usr/src/vboxhost-5.0.16_OSE
[2016-03-14 14:57] [ALPM-SCRIPTLET]
[2016-03-14 14:57] [ALPM-SCRIPTLET] DKMS: add completed.
[2016-03-14 14:57] [ALPM-SCRIPTLET]
[2016-03-14 14:57] [ALPM-SCRIPTLET] Kernel preparation unnecessary for this kernel. Skipping...
[2016-03-14 14:57] [ALPM-SCRIPTLET]
[2016-03-14 14:57] [ALPM-SCRIPTLET] Building module:
[2016-03-14 14:57] [ALPM-SCRIPTLET] cleaning build area...
[2016-03-14 14:57] [ALPM-SCRIPTLET] make KERNELRELEASE=4.4.5-1-ARCH -C /usr/lib/modules/4.4.5-1-ARCH/build M=/var/lib/dkms/vboxhost/5.0.16_OSE/build.........
[2016-03-14 14:57] [ALPM-SCRIPTLET] cleaning build area...
[2016-03-14 14:57] [ALPM-SCRIPTLET] Kernel cleanup unnecessary for this kernel. Skipping...
[2016-03-14 14:57] [ALPM-SCRIPTLET]
[2016-03-14 14:57] [ALPM-SCRIPTLET] DKMS: build completed.
[2016-03-14 14:57] [ALPM-SCRIPTLET]
[2016-03-14 14:57] [ALPM-SCRIPTLET] vboxdrv.ko:
[2016-03-14 14:57] [ALPM-SCRIPTLET] Running module version sanity check.
[2016-03-14 14:57] [ALPM-SCRIPTLET] - Original module
[2016-03-14 14:57] [ALPM-SCRIPTLET] - No original module exists within this kernel
[2016-03-14 14:57] [ALPM-SCRIPTLET] - Installation
[2016-03-14 14:57] [ALPM-SCRIPTLET] - Installing to /usr/lib/modules/4.4.5-1-ARCH/kernel/misc/
[2016-03-14 14:57] [ALPM-SCRIPTLET]
[2016-03-14 14:57] [ALPM-SCRIPTLET] vboxnetflt.ko:
[2016-03-14 14:57] [ALPM-SCRIPTLET] Running module version sanity check.
[2016-03-14 14:57] [ALPM-SCRIPTLET] - Original module
[2016-03-14 14:57] [ALPM-SCRIPTLET] - No original module exists within this kernel
[2016-03-14 14:57] [ALPM-SCRIPTLET] - Installation
[2016-03-14 14:57] [ALPM-SCRIPTLET] - Installing to /usr/lib/modules/4.4.5-1-ARCH/kernel/misc/
[2016-03-14 14:57] [ALPM-SCRIPTLET]
[2016-03-14 14:57] [ALPM-SCRIPTLET] vboxnetadp.ko:
[2016-03-14 14:57] [ALPM-SCRIPTLET] Running module version sanity check.
[2016-03-14 14:57] [ALPM-SCRIPTLET] - Original module
[2016-03-14 14:57] [ALPM-SCRIPTLET] - No original module exists within this kernel
[2016-03-14 14:57] [ALPM-SCRIPTLET] - Installation
[2016-03-14 14:57] [ALPM-SCRIPTLET] - Installing to /usr/lib/modules/4.4.5-1-ARCH/kernel/misc/
[2016-03-14 14:57] [ALPM-SCRIPTLET]
[2016-03-14 14:57] [ALPM-SCRIPTLET] vboxpci.ko:
[2016-03-14 14:57] [ALPM-SCRIPTLET] Running module version sanity check.
[2016-03-14 14:57] [ALPM-SCRIPTLET] - Original module
[2016-03-14 14:57] [ALPM-SCRIPTLET] - No original module exists within this kernel
[2016-03-14 14:57] [ALPM-SCRIPTLET] - Installation
[2016-03-14 14:57] [ALPM-SCRIPTLET] - Installing to /usr/lib/modules/4.4.5-1-ARCH/kernel/misc/
[2016-03-14 14:57] [ALPM-SCRIPTLET]
[2016-03-14 14:57] [ALPM-SCRIPTLET] depmod.....
[2016-03-14 14:57] [ALPM-SCRIPTLET]
[2016-03-14 14:57] [ALPM-SCRIPTLET] DKMS: install completed.