-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Raspbian has 2 kernel Image files. #146
Comments
I don't think there is a generic way of filtering kernel images which are incompatible. It might be possible to add a configuration option for white or blacklisting kernel images. |
For the moment, one might want to install something like the following in #!/bin/sh
version="$1"
file="$2"
if [ -n "$file" ] && [ "$file" != "/boot/kernel.img" ]; then
rm -f "$file"
fi |
It is not the fault of this command. sorry. I am sloth. :-) And when the 3B+ troubled, same SD card used by 3B+ can be boot as it is for ZeroW.
boot same SD card.
RaspberryPi / Raspbian may not ordinary . but Another just amateur idea ... not have to consider it. |
This is still an issue as the default behaviour of needrestart is to put up a MODAL DIALOG box breaking automation scripts used in modern administration The error then occurs after every install if a package forcing the admin to sit in front of the screen and manually press enter after every single package install. It wouldn’t be such a problem if this was a rarely used script but it is a dependency on docker and some other big names in the Linux world I would give a patch but I can’t get my head around Perl and would probably cause more damage than I fix. Could I suggest than before comparing the Kernel files you Just regex for only the kernel version number and drop off the -v* at the end Alternatively you could change the default behaviour to report to standard error and not dialog box |
Still and issue on RPi1
|
Other models as well. Raspberry Pi Model B Rev 2 & Raspberry Pi Model B Plus Rev 1.2:
Raspberry Pi 3 Model B Rev 1.2:
Raspberry Pi 4 Model B Rev 1.1:
|
@Tuffiglig yes and no, those could run the other kernel, but not on RPi1 ;) |
Got this issue as well on my Pi 3b, I've just removed the |
There's a config option that moves this to a warning line. |
Any further details on how to fix this issue by changing a config file? Which config file is it? What should be added/removed/changed? |
|
Thanks. This is just a mitigation, right? You'll stop getting the false positives (warnings about a new kernel that is not really there) but you'll also start "getting" false negatives (never getting notified when a real new kernel was installed and a restart is really needed) or am I missing something? |
Ideally there would be a simple way to override the default kernel image checker code. On raspbian you could then ditch the '-v7+' / '-v8+' tail fragment of the kernel identifier before comparing the kernel versions. Alternatively, you could tell |
It should be possible to add some perl code to |
Look at https://github.com/liske/needrestart/blob/master/README.raspberry.md , the filter is documented here. |
Raspbian(debian/ubuntu) has 2 kernel Image files.
https://www.raspberrypi.org/documentation/configuration/config-txt/boot.md
--> "4.14.98+"
--> "4.14.98-v7+"
When Boot it select, able to OS SDcard change to other Raspi.
But, I only use Raspberry Pi(1 B+),
Then, I do "mv /boot/kernel7.img /boot/kernel7.img.unused", every kernel package update.
Can't do it better?
( /perl5/NeedRestart/Kernel/Linux.pm nr_kernel_check_real )
The text was updated successfully, but these errors were encountered: