FS#47487 - [linux] Install dkms modules in post_upgrade/post_install hook

Attached to Project: Arch Linux
Opened by Jörg Thalheim (Mic92) - Tuesday, 22 December 2015, 12:17 GMT
Last edited by Doug Newgard (Scimmia) - Friday, 18 November 2016, 00:52 GMT
Task Type Feature Request
Category Packages: Core
Status Closed
Assigned To Tobias Powalowski (tpowa)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No

Details

Description:
It would be useful build dkms modules (if dkms is available) before generating
initramfs, because they might be required in the initramfs.
In my case, I use the zfs-dkms module and have to do this manually before rebooting,
because otherwise I cannot mount my rootfs on the next run.
The dkms service does therefor not solve.
As this service is triggered at multi-user.target it might even has a race condition
with services depending on certain dkms modules (if somebody wants to start virtualbox at startup).
I see a use case, where someone do not want to load a certain module for a certain kernel version,
but this could be solved by blacklisting (most people want to use the dkms modules, they have installed anyway)
If the main kernel package would stick to this practice, other
kernel packages might follow, so dkms modules would be become usable across different kernel variants.
This task depends upon

Closed by  Doug Newgard (Scimmia)
Friday, 18 November 2016, 00:52 GMT
Reason for closing:  Fixed
Additional comments about closing:  linux 4.8.8-2
Comment by Doug Newgard (Scimmia) - Wednesday, 23 December 2015, 01:06 GMT
Sounds like a job for local a pacman hook (coming soon).
Comment by AnAkkk (AnAkkk) - Friday, 19 February 2016, 23:14 GMT
Apparently this was implemented now, but it only triggers when there is a -dkms package update.
This one probably works better as it trigger even when installing a new kernel:
https://github.com/alucryd/pachooks/blob/master/hooks/dkms-install.hook

Loading...