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 /sysrootRelated terms
- initramfs — A small temporary root filesystem, loaded into memory with the kernel, that holds the drivers and tools needed to find and mount the real root filesystem.
- GRUB — The bootloader most Linux distributions use to pick a kernel and initramfs and start it with a command line.
- SELinux — A Linux security layer that labels every process, file and port and allows only the accesses its policy lists.
Taught in
- Recovering Root And Changing The Boot Loader — Red Hat Certified System Administrator (EX200) Exam Prep
- Drill: The Machine That Will Not Boot — Red Hat Certified System Administrator (EX200) Exam Prep