Sven Posted April 14, 2020 Share Posted April 14, 2020 (edited) Hello, not sure if I'm at the right place here, so please let me know if I'm wrong and where I need to be. Thanks in advance and my apologies... My problem is that for some time now does Apt keep deleting custom kernels in /boot and the package appears to delete kernels not only with a rough pattern, but with "-f" as well, ignoring any file permissions. I've been watching this for a while now and it has left me at first with unbootable devices until I've noticed the cause. I would very much appreciate it of the Armbian kernel package wouldn't just delete anything that looks remotely like a kernel from /boot with a "rm -f *", but only removes the files that have been part of a previously installed package and leaves all other files in place. An example: Preparing to unpack .../38-linux-image-current-sunxi_20.02.11_armhf.deb ... update-initramfs: Deleting /boot/initrd.img-5.6.3-sven1 <--- There again Removing obsolete file 5.4.30-sunxi Removing obsolete file uInitrd-5.6.3-sven1 <--- Not obsolete but actually a part of the running kernel Removing obsolete file uInitrd-5.4.30-sunxi update-initramfs: Deleting /boot/initrd.img-5.4.30-sunxi Unpacking linux-image-current-sunxi (20.02.11) over (20.02.9) ... I'd appreciate it if somebody could make this stop. Edited April 14, 2020 by Sven Link to comment Share on other sites More sharing options...
Igor Posted April 14, 2020 Share Posted April 14, 2020 1 hour ago, Sven said: I'd appreciate it if somebody could make this stop. Someone could also be you: https://github.com/armbian/build/commit/7b593a8153276668ef44b1c41f5afed8b7529500 https://github.com/armbian/build/commit/60f4addd0b54ed9587aed60d12c37893a07133cb https://github.com/armbian/build/pull/1844 Link to comment Share on other sites More sharing options...
Recommended Posts