Closed rfertig closed 6 months ago
On a Raspberry Pi5 I got this annoying message
Newer kernel available
The currently running kernel version is 6.1.0-rpi7-rpi-2712 which is not the expected kernel version 6.1.0-rpi7-rpi-v8.
Restarting the system to load the new kernel will not be handled automatically, so you should consider rebooting.
I had to put the following in /etc/needrestart/conf.d/rpi.conf
$nrconf{kernelfilter} = qr(vmlinuz-.*-2712$);
You might want to change 2712
by v8
depending on the image you are using. By default Pi5 seems to use 2712
for performances which correspond to a 16KB page size.
Could one of you create a PR with the required changes handling all RPi cases (I'm not using raspian by myself)?
IMHO this issue is fixed by #298
With RaspiOS 12 Bookworm there are no longer kernels with the name e.g. “kernel7.img”, but “vmlinuz-6.1.0-rpi6-rpi-v7”.
Therefore, there should be an additional note in needrestart/README.raspberry.md that in the case of Bookworm the filter line should look like this:
$nrconf{kernelfilter} = qr(vmlinuz-.*-v6$);