CentOS 7的单用户模式和6.5稍有不同

把ro改成 “rw init=/sysroot/bin/sh”. 完成之后按 “Ctrl+x”

chroot /sysroot/
passwd root
touch /.autorelabel

04-17 19:00