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.
[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.
相关文章推荐
- poj 1995 Raising Modulo Numbers
- TabLayout使用遇到的问题
- 第三天 确定两串乱序同构
- 无法修正错误,因为您要求某些软件包保持现状,就是它们破坏了软件包间的依赖关系
- 信息安全方面优秀论文
- java设计模式之代理模式
- Maven项目mybatis集成,聚合,父子,配置,依赖
- Android实现音量调节的方法
- (模板题)sdut 2143 图结构练习——最短路径(SPFA求最短路)
- Doing Homework again(贪心)
- C++11中一些新语言特性与相似特性的比较
- django连接mysql自动同步生成数据表
- java运行环境的配置
- HTTP 网络访问/JSON 解析
- 《道德经》初读感言
- hdu4126 prim+树形dp
- mybatis学习笔记——java.lang.NullPointerException
- 织梦DEDECMS无简略标题显示完整标题的实现代码
- Linux下接收串口数据0x0d变0X0a问题
- 浅析Java中print、printf、println的区别