I have a computer with Manjaro on which I installed multiple kernels in the past, namely:
5.10 LTS
5.15 LTS
5.16
Now, 5.16 ran out of support before I moved to a newer kernel and thus, I encountered some problems with it. I booted Manjaro from live usb and removed 5.16 using:
mhwd-kernel -r linux516
While the kernel was removed, it somehow still shows up in grub and now I have to manually select the 5.15 kernel in grub when booting.
Kernel 5.16 seems to be removed:
mhwd-kernel -li
Currently running: 5.15.74-3-MANJARO (linux515)
The following kernels are installed in your system:
* linux510
* linux515
sudo update-grub
[sudo] password for wombat:
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/manjaro/theme.txt
Found linux image: /boot/vmlinuz-5.16-x86_64
Found initrd image: /boot/amd-ucode.img /boot/initramfs-5.16-x86_64.img
Found initrd fallback image: /boot/initramfs-5.16-x86_64-fallback.img
fgrep: warning: fgrep is obsolescent; using grep -F
Found linux image: /boot/vmlinuz-5.15-x86_64
Found initrd image: /boot/amd-ucode.img /boot/initramfs-5.15-x86_64.img
Found initrd fallback image: /boot/initramfs-5.15-x86_64-fallback.img
fgrep: warning: fgrep is obsolescent; using grep -F
Found linux image: /boot/vmlinuz-5.10-x86_64
Found initrd image: /boot/amd-ucode.img /boot/initramfs-5.10-x86_64.img
Found initrd fallback image: /boot/initramfs-5.10-x86_64-fallback.img
fgrep: warning: fgrep is obsolescent; using grep -F
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Found memtest86+ image: /boot/memtest86+/memtest.bin
/usr/bin/grub-probe: warning: unknown device type nvme0n1.
done
I am not courageous enough to simply remove the 5.16 files from /boot. So, how can I safely resolve the issue?
I wanted to update my system using pacman which failed. My system was a bit unresponsive after that and seemed a bit buggy/broken, so I figured I should restart the system. The system did not boot properly after. As I had a live usb lying around, I booted from that and noticed then, that the kernel I was running was unsupported. So, I removed it from there and was able to boot again normally, however, the 5.16 kernel was not removed from grub automatically for some reason.
Thanks for your response, I will try removing it manually then. I can’t do so before next week though.