-
Notifications
You must be signed in to change notification settings - Fork 2
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
kernel8.img missing in /boot after (re)installing raspberrypi-kernel on RaspberryPi 3 #344
Comments
Yup, that doesn't sound great. I'll take a look, thanks. |
@XECDesign Will you have looked into this, and if you also conclude that it needs to be fixed, that this is done before the next kernel update? And, do you need some info from me to speed things up? |
I can relate to this issue, and reinstalling both kernel and bootloader ( However, interestingly, the
|
@RoiArthurB Are you using the 32bit build of raspiOS? That's different form mine, that version includes both 32bit and 64bit kernels and bootloader files. That version requires more space in /boot so probably in your case SKIP_FILES was probably still set to "1". Whereas in my situation having all kernel and bootloader files redirected to /usr/share/rpikernelhack, left SKIP_FILES to "0" is my setup. In your situation /boot is maybe smaller than the install script uses as threshold. kernel8.img is indeed still in /usr/share/rpikernelhack because the postinst script doesn't cleanup the redirection for kernel8.img, so that is never directing it back to /boot. |
@jorisvergeer oh yeah you're right. I have an old remote 32bit install. I thought I could use your documented issue to migrate to a 64bits kernel 😅 |
It's fairly high on the todo list, but not as high as it normally would be, because of the pi5 launch. I'll take a look before any further bullseye raspberrypi-kernel updates go out. |
I have a lot raspberry pies running on raspbian bullseye 64bit. So I boot from kernel8.img.
I was shocked that when I tested the reinstallation/upgrade on one of my devices by running
sudo apt install raspberrypi-kernel --reinstall
There somewhere in the logs is:
In this snippet in postinst of raspberrypi-kernel diversions of the kernel.img are removed under conditions:
Here the condition of "SKIP_PI4" is not met since it is 1 on a RPI3, and thus the diversion of kernel8 is not removed, leaving /boot devoid of a kernel8.img file.
I think that this condition should not even be in the arm64 build of the package since kernel8.img is the only kernel present in the arm64 build of raspberrypi-kernel, and the diversion should always be removed in this case.
Installing raspberrypi-kernel and raspberrypi-bootloader together in the same command, make it work through a scary loophole. Both packages have all their files diverted leaving /boot empty at the moment when
You do not have enough space in /boot to install this package.
should be produced, and doesnt skip thedpkg-divert
commands because SKIP_FILES is then 0.The text was updated successfully, but these errors were encountered: