You are not logged in.
Pages: 1
I was looking to compile a custom kernel so that I can have support for user namespaces for LXC. I'm a bit confused at what will then be required once I have compiled a custom kernel. Since it is my own custom kernel, what will I do about kernel modules and drivers? For example, when you decide to use the linux-lts kernel with nvidia, you have to use the nvidia-lts driver.
I am using ZFS with the archzfs repository, will I no longer be able to use this custom Repository since they are compiling packages specifically for the linux kernel?
Offline
Yes, modules must be compiled against the different kernel.
Just look at the PKGBUILD for their nvidia package (or indeed the several nvidia packages in the repos and the AUR) to see how they work, then tweak it to use your custom kernel's build directory.
Managing AUR repos The Right Way -- aurpublish (now a standalone tool)
Offline
Cool, thanks.
Offline
I have done this just a couple of days ago actually. After installing my custom kernel (with user namespace enabled, and a few other tweaks) I rebooted the machine and found that my xserver and desktop wouldn't start up. After checking out journalctl I found that it was because my nvidia driver had to be recompiled for the new kernel. The easiest way to do this is to remove the "nvidia" package and install the "nvidia-dkms" package which will automatically recompile every time the linux-headers package is updated/reinstalled. See this ... https://wiki.archlinux.org/index.php/NV … tom_kernel
In my case after I installed the nvidia-dkms package I had to reinstall my custom linux headers package to trigger the rebuild of the nvidia driver.
Hope this helps!
Last edited by jjb2016 (2016-11-27 10:37:48)
Offline
Thanks, that helps. Basically if I want to use a custom kernel my best bet would be to use dkms for everything? So if I'm running ZFS, Nvidia, Virtual box, and anything with modules I'm going to either have to find a custom package, set up a custom package, or use dkms?
Offline
dkms would make sense, since you have to compile it yourself anyway. So yeah.
Managing AUR repos The Right Way -- aurpublish (now a standalone tool)
Offline
Yep - for nvidia and virtualbox there appears to be a dkms package in the official repos but for zfs there is one in AUR https://aur.archlinux.org/packages/zfs-dkms/
Offline
Pages: 1