步骤1:
在选择内核的界面,按下“e”键
步骤2:
在按下“e”键,进入到内核的参数修改模式中,找到“UTF8”在后面添加rd.break console=tty0
输入完后,按下ctrl+x组合键,进入到单用户模式中
步骤3:
在单用户模式中,如下操作:
switch_root# mount -o remount,rw /sysroot
switch_root# chroot /sysroot
sh-4.2# passwd root
New Password:<输入你的新密码>
Retry input Password:<再次输入一遍>
sh-4.2# touch /.autorelabel
sh-4.2# exit
switch_root# reboot