rocky linux 8.5 gurb2 修改启动顺序 ( dual boot )

2022/3/12 7:15:00

本文主要是介绍rocky linux 8.5 gurb2 修改启动顺序 ( dual boot ),对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

https://wiki.centos.org/HowTos/Grub2#head-535f476a61e62f24bc150c73f7e0816f85345f46

https://www.cnblogs.com/hugetong/p/8126375.html  [grub2] grub2修改启动顺序

 编写于:2022.3.11

1, 查看所有的entry

[root@dpdk grub2]# awk -F \' '$1=="menuentry " {print i++ " : " $2}' /etc/grub2-efi.cfg

0 : Windows Boot Manager (on /dev/sdb1)
1 : System setup

 

2. 查看当前default的entry

[root@dpdk grub2]# grub2-editenv list

saved_entry=c1841787d0bc49df94f17b4185985269-4.18.0-348.12.2.el8_5.x86_64
kernelopts=root=/dev/mapper/rl-root ro crashkernel=auto resume=/dev/mapper/rl-swap rd.lvm.lv=rl/root rd.lvm.lv=rl/swap rhgb quiet
boot_success=1
boot_indeterminate=0

[root@dpdk grub2]# 

 

3. 修改为指定的entry

[root@dpdk grub2]# grub2-set-default 0
[root@dpdk grub2]# grub2-editenv list

saved_entry=0
kernelopts=root=/dev/mapper/rl-root ro crashkernel=auto resume=/dev/mapper/rl-swap rd.lvm.lv=rl/root rd.lvm.lv=rl/swap rhgb quiet
boot_success=1
boot_indeterminate=0

[root@dpdk grub2]# 

 



这篇关于rocky linux 8.5 gurb2 修改启动顺序 ( dual boot )的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程