执行grub2-mkconfig -o /boot/grub2/grub.cfg命令生成更新grub配置参数。
[root@www ~]# grub2-mkconfig -o /boot/grub2/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.10.0-327.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-327.el7.x86_64.img
Found linux image: /boot/vmlinuz-0-rescue-c17f90bf14ca4afc94a2eebcb70f624d
Found initrd image: /boot/initramfs-0-rescue-c17f90bf14ca4afc94a2eebcb70f624d.img
done