0%

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#/boot/grub/grub.conf 缺失:

yum install -y grub
grub-mkconfig -o /boot/grub/grub.conf

#/boot/grub2/grub.cfg 缺失:

yum install -y grub2
grub2-mkconfig -o /boot/grub2/grub.cfg

uname -a
sudo grep ^menuentry /boot/grub2/grub.cfg | awk -F\' '{print $2}' | nl -v0

sudo grub2-editenv list

sudo grep GRUB_DEFAULT /etc/default/grub

sudo vim /etc/default/grub

sudo grub2-set-default 1

sudo grub2-mkconfig -o /boot/grub2/grub.cfg

sudo dracut --force

sudo reboot

uname -a