Using rd.break to Reset the Root Password

reboot > e > line starting with linux17 > remove “rhgb quiet”, insert the parameters: “rd.break”
ctrl+x
# mount -o remount,rw /sysroot
# chroot /sysroot
# echo secret | passwd –stdin root
# touch /.autorelabel
ctrl+d
ctrl+d
Login again normal