How to get rid of the old rescue kernel

Hello there. I have upgraded to the new release and removed the old kernel-* packages. However the old rescue kernel is still present in the GRUB menu. How can I rid myself of it?


Solution maybe the same as simiar issue with debug kernels:

Thanks Tom.

Thanks for the response but there are no packages left to remove:

[krystof@localhost ~]$ sudo rpm -qa kernel*

still, the old kernel and ramdisk are there:

[krystof@localhost ~]$ ll /boot
total 147116
-rw-r--r--. 1 root root   231282 Apr 16 16:07 config-5.11.15-300.fc34.x86_64
drwx------. 4 root root     4096 Apr 27 19:31 efi
-rw-r--r--. 1 root root   155544 Jan 27 14:28 elf-memtest86+-5.31
drwxr-xr-x. 2 root root     4096 Apr 27 19:24 extlinux
drwx------. 5 root root     4096 Apr 27 20:50 grub2
-rw-------. 1 root root 89483912 Apr 23 04:37 initramfs-0-rescue-59210c027bb34fabb78810799b66cec2.img
-rw-------. 1 root root 32661091 Apr 27 19:40 initramfs-5.11.15-300.fc34.x86_64.img
drwxr-xr-x. 3 root root     4096 Apr 23 04:34 loader
drwx------. 2 root root    16384 Apr 23 04:29 lost+found
-rw-r--r--. 1 root root   153868 Jan 27 14:28 memtest86+-5.31
-rw-------. 1 root root  5640176 Apr 16 16:07
-rwxr-xr-x. 1 root root 11698160 Apr 23 04:35 vmlinuz-0-rescue-59210c027bb34fabb78810799b66cec2
-rwxr-xr-x. 1 root root 10581008 Apr 16 16:07 vmlinuz-5.11.15-300.fc34.x86_64

EDIT: deleted both files and ran grub2-mkconfig. The entry is still in the menu.

You can either wait for the next kernel update or reinstall the latest one and just before the transaction delete the old rescue kernel:
rm /boot/*rescue*
(as root, or prefixed with sudo)
When the kernel is updated (or reinstalled) it will be copied as the rescue kernel.


This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.