[arch-dev-public] out of tree modules and alpm-hooks
alucryd at archlinux.org
Fri Feb 19 07:12:06 UTC 2016
On Fri, Feb 19, 2016 at 2:27 AM, Sébastien Luttringer <seblu at seblu.net>
> I pushed into community-testing a new version of dkms, with an alpm hook to
> build oot modules at install time, instead of at startup time with the
> The hooks is very simple; it build and install dkms registered modules for
> installed kernel version when a package ending by -dkms is installed or
> So, installing or updating a *-dkms package (e.g virtualbox-host-dkms or
> nvidia-340xx-dkms) build and install the shipped modules and allow to use
> like the binary package (e.g modprobe nvidia).
> As a consequence, loading of oot modules at boot are back to modules-load.d
> If everything works correctly, we could get ride of pre-compiled oot
> packages (e.g virtualbox-host-modules) for linux and linux-lts and offer a
> unique approach for all kernels (arch, lts, zen, grsec).
> Do you think we should define a better way to match package which should
> trigger dkms rebuild? I firstly thought to use a provides=('DKMS_MODULE'),
> alpm hooks don't match provides.
> Sébastien "Seblu" Luttringer
> https://seblu.net | Twitter: @seblu42
> GPG: 0x2072D77A
What about when you remove a dkms package? Would be nice to remove the
build modules as well.
With these hooks  designed for kernel transaction, we will have complete
support of oot modules in pacman.
More information about the arch-dev-public