Below are the steps to follow to reset root password
Step 1: Once the system boots instead of selecting the kernel to boot in press “e”
Step 2: Add “init=/sysroot/bin/bash” at the end of linux16 as shown below
Step 3: Press Ctrl + x and you will end with the prompt.
Step 4: Execute below commands
Step 5: You should see the successful message after setting thew new root password.
Reboot the system