How to remove rescue image using grubby?
Issue
- I would like to remove the rescue image in /boot directory:
# ls -1 /boot
config-3.10.0-514.10.2.el7.x86_64
config-3.10.0-514.16.1.el7.x86_64
config-3.10.0-514.21.1.el7.x86_64
grub2
initramfs-0-rescue-1342dfa6677b4e25aa55a70d7af61410.img
initramfs-3.10.0-514.10.2.el7.x86_64.img
initramfs-3.10.0-514.10.2.el7.x86_64kdump.img
initramfs-3.10.0-514.16.1.el7.x86_64.img
initramfs-3.10.0-514.21.1.el7.x86_64.img
initramfs-3.10.0-514.21.1.el7.x86_64kdump.img
initrd-plymouth.img
symvers-3.10.0-514.10.2.el7.x86_64.gz
symvers-3.10.0-514.16.1.el7.x86_64.gz
symvers-3.10.0-514.21.1.el7.x86_64.gz
System.map-3.10.0-514.10.2.el7.x86_64
System.map-3.10.0-514.16.1.el7.x86_64
System.map-3.10.0-514.21.1.el7.x86_64
vmlinuz-0-rescue-1342dfa6677b4e25aa55a70d7af61410
vmlinuz-3.10.0-514.10.2.el7.x86_64
vmlinuz-3.10.0-514.16.1.el7.x86_64
vmlinuz-3.10.0-514.21.1.el7.x86_64
work
- Although I know that I can simply remove the image file using rm command, can you please let me know how I easily remove its menu entry in grub.cfg?
Environment
- Red Hat Enterprise Linux 7
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.