1. 登陆界面start 系统
2. 当看到内核信息时,e 进入编辑模式,在内核信息(Linux16...)后面加上“rd.break cosole=tty0” ,crt+x保存
3. 这时以switch_root模式,
#mount remount,rw /sysroot
#chroot /sysroot
切换到正常的root模式,
#passwd
#touch /.autorelabel
#exit
切换到switch_root模式,#reboot 即可。
1. 登陆界面start 系统
2. 当看到内核信息时,e 进入编辑模式,在内核信息(Linux16...)后面加上“rd.break cosole=tty0” ,crt+x保存
3. 这时以switch_root模式,
#mount remount,rw /sysroot
#chroot /sysroot
切换到正常的root模式,
#passwd
#touch /.autorelabel
#exit
切换到switch_root模式,#reboot 即可。