Re: Detecting change in running kernel version between reboots
Mike wrote:
> I have a TV card in one of my boxen, which requires a kernel module to
> be built. I've got that all nicely scripted and so I can kick it off
> with relative ease.
>
> The issue is detecting when it needs to be done. ie after a change in
> the running kernel. At the moment, it's detected by the TV guide
> running out of data and triggering an Icinga alert, which then causes me
> to investigate and rebuild the kernel module. I was hoping for
> something a little more automated. I'm envisioning something which
> starts on boot checking if the kernel has changed and if so, kicking off
> the kernel module rebuild script.
That's what the DKMS system is for, only it triggers when apt
updates the kernel rather than after a reboot.
https://packages.debian.org/bookworm/dkms
-dsr-
Reply to: