您的位置:首页 > 其它

grub2-set-default & grub2-editenv & grub2-mkconfig

2016-07-23 16:44 387 查看
// grep -E --color "multiboot|module" /boot/grub2/i386-pc/command.lst

[root@localhost ~]# grep ^menuentry /boot/grub2/grub.cfg | cut -d "'" -f2

Fedora (4.6.4-301.fc24.x86_64) 24 (Workstation Edition)
Fedora (4.5.5-300.fc24.x86_64) 24 (Workstation Edition)
Fedora (0-rescue-5a7811782f504e58b061fcc2863b9246) 24 (Workstation Edition)
Fedora, with Xen hypervisor

[root@localhost ~]# grub2-set-default 'Fedora, with Xen hypervisor'

[root@localhost ~]# grub2-editenv list

saved_entry=Fedora, with Xen hypervisor

[root@localhost ~]# grub2-mkconfig -o /boot/grub2/grub.cfg

Now reboot.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: