系统相关
首页 > 系统相关> > rocky linux 8.5 gurb2 修改启动顺序 ( dual boot )

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]# 

 

标签:8.5,rocky,gurb2,dev,grub2,rl,entry,root,dpdk
来源: https://www.cnblogs.com/teacher-chen/p/15993271.html