Grub

To generate grub.cfg on CentOS 7, run

grub2-mkconfig -o /boot/grub2/grub.cfg

Rebuild/Update grub.cfg

On Debian

root@hon-vpn:~# update-grub
Generating grub configuration file ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-3.16.0-4-amd64
Found initrd image: /boot/initrd.img-3.16.0-4-amd64
done
root@hon-vpn:~#

View All Menu entry

CentOS/RHEL

grep menuentry /boot/grub2/grub.cfg

Debian/Ubuntu

grep menuentry /boot/grub/grub.cfg

Posted in CentOS