[SOLVED] How to force headers being installed with the new kernel

Vladimir Bulgaru

Renowned Member
Jun 1, 2019
216
63
68
38
Moscow, Russia
Hello!

Occasionally the pve-kernel gets updated. I am using DKMS to compile the drivers for a device when the kernel gets updated. The catch lies in the fact that in order to compile those drivers, kernel headers are necessary and on update are missing.

This results in the system becoming degraded as soon as the kernel is updated.

Normally i try to monitor the updates so that i don't skip the kernel update and it helps that there's a notification telling that the kernel has been updated and the reboot is necessary.

I was wondering if there are tips & tricks how to have headers installed with the kernel? And if there are none, what would be the best angle to automate this?

Am i correct to assume according to this reply, that if i have pve-headers installed, the new headers will automatically be updated with the new kernel?
 
Am i correct to assume according to this reply, that if i have pve-headers installed, the new headers will automatically be updated with the new kernel?
yes, pve-headers (currently) depends on pve-headers-4.15 which depends on the current pve-headers-package and is in sync with pve-kernel-4.15
 
  • Like
Reactions: Vladimir Bulgaru