You are not logged in.

#1 2013-12-02 09:03:02

r2b2
Member
Registered: 2013-08-12
Posts: 14

[SOLVED] Automatic upgrade kernel module when upgrading Linux kernel

In my setup, I need to use a dkms enabled module to run my network card. Currently the way I've got it setup, I need to do a "dkms autoinstall -k 3.X.X" whenever there is a new kernel version updated via pacman.

Wondering if there is an automated way that I can have "dkms autoinstall" run when there is a new kernel version?

Last edited by r2b2 (2013-12-08 07:40:57)

Offline

#2 2013-12-02 09:29:33

andy123
Member
Registered: 2011-11-04
Posts: 169
Website

Re: [SOLVED] Automatic upgrade kernel module when upgrading Linux kernel


i'm sorry for my poor english wirting skills…

Offline

#3 2013-12-02 10:23:39

r2b2
Member
Registered: 2013-08-12
Posts: 14

Re: [SOLVED] Automatic upgrade kernel module when upgrading Linux kernel

Thanks.

I've actually read that previously and enabled the service but I found (previously I admit) that it didn't seem to actually rebuild the module properly and I'd be left without a network adapter until I manually did a dkms rebuild. I'll try again at the next kernel upgrade and see what happens.

Offline

#4 2013-12-07 11:32:30

r2b2
Member
Registered: 2013-08-12
Posts: 14

Re: [SOLVED] Automatic upgrade kernel module when upgrading Linux kernel

Cool - it looks like it does actually rebuild as properly following a reboot albeit rather slowly (which is probably why I thought it wasn't working properly)

Out of interest though, to speed things up in the future, is there any way to get it to do the rebuild immediately following the linux kernel upgrade? (i.e. rebuild prior to rebooting)

Thanks!

Offline

#5 2013-12-07 13:05:56

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: [SOLVED] Automatic upgrade kernel module when upgrading Linux kernel

doubt it, as the newly installed kernel doesn't have the new modules loaded until reboot.

If you prefer to avoid a reboot, look in to kexec .
It's supposed to be able to change the kernel on a live system.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#6 2013-12-07 13:09:23

andy123
Member
Registered: 2011-11-04
Posts: 169
Website

Re: [SOLVED] Automatic upgrade kernel module when upgrading Linux kernel

Nice, you should be able to call dkms manually, like described here or as you said in your first post "dkms autoinstall -k 3.X.X" (where 3.x.x is the newly installed kernel). This should be doable before reboot.

Could you also mark this thread as solved, please?


i'm sorry for my poor english wirting skills…

Offline

Board footer

Powered by FluxBB