liske / needrestart

Restart daemons after library updates.
GNU General Public License v2.0
440 stars 70 forks source link

Multiple kernel branches #250

Open fossdd opened 2 years ago

fossdd commented 2 years ago

Arch Linux gives users the choice to install multiple kernels to their systems. E.g. I have currently linux-mainline and linux-next installed.

However, if I update linux-next, needrestart warns me that the new linux-next kernel is expected, even I currently setup in Grub to use the mainline kernel always.

Pending kernel upgrade!

Running kernel version:
  5.19.0-rc8-1-mainline

Diagnostics:
  The currently running kernel version is not the expected kernel version 5.19.0-rc8-next-20220726-1-next-git.

Is it able that needrestart only warns if the running branch is newer than my current linux kernel?

liske commented 2 years ago

It is possible to filter images using a regex in the configuration file and the config file has the power of perl.

Other Linux distris have the same concept but im currently not aware if there is a common approach to detect kernel branches/variants in a generic way.