how to update the menuentry

grep menuentry /boot/grub2/grub.cfg
This will display all your grub entries

Highlight the entry you want to default to - for example Windows 7 (loader) (on /dev/sda1) Right click and choose copy

Type

gedit /etc/default/grub
Change the entry

GRUB_DEFAULT=0
to

GRUB_DEFAULT="Windows 7 (loader) (on /dev/sda1)"
i.e. paste the entry you want (including the quotes)

Save, then type

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

 

posted @ 2019-02-04 16:01  zjhangia  阅读(142)  评论(0编辑  收藏  举报