rd.break

A kernel argument that stops the boot inside the initramfs, before the real root file system is used, so root's password can be reset.

In more detail

The real root is mounted read-only at /sysroot: remount it read-write, chroot into it, run passwd, then touch /.autorelabel so SELinux relabels the changed files on the next boot. Remove nothing afterwards, because the argument was added for one boot only from the boot menu.

Example

mount -o remount,rw /sysroot; chroot /sysroot

Related terms

Taught in

References

Certification courses