首先寻找grub的相关程序
~ su
# find / -name "*grub*"
找到grub修改启动引导默认值的程序为**/usr/sbin/grub2-set-default**
查看grub2-set-default的帮助
# grub2-set-default --help
返回如下的帮助信息
Usage: grub2-set-default [OPTION] MENU_ENTRY
Set the default boot menu entry for GRUB.
This requires setting GRUB_DEFAULT=saved in /etc/default/grub.
-h, --help print this message and exit
-v, --version print the version information and exit
--boot-directory=DIR expect GRUB images under the directory DIR/grub2
instead of the /boot/grub2 directory
MENU_ENTRY is a number, a menu item title or a menu item identifier.
Report bugs to <bug-grub@gnu.org>.
表明菜单入口(MENU_ENTRY)是一个数字,一个菜单项的标题或者是一个菜单项的标示器。
当默认的启动项为fedora,且其所在位置为0时,则第三个winodws所在的位置则为2。于是可以更改grub2的默认的启动值。
# grub2-set-default 2
OK, 解决了。