Press Ctrl+a and Ctrl+e to jump to the start and end of the line, respectively. On some systems, Home and End might also work. linux
IMPORTANT app
The rhgb and quiet parameters must be removed in order to enable system messages. ide
rd.break enforcing=0ui
Adding the enforcing=0 option enables omitting the time consuming SELinux relabeling process. this
The initramfs will stop before passing control to the Linux kernel, enabling you to work with the root file system. spa
Note that the initramfs prompt will appear on the last console specified on the Linux line rest
With an encrypted file system, a password is required at this point. However the password prompt might not appear as it is obscured by logging messages. You can press the Backspace key to see the prompt. Release the key and enter the password for the encrypted file system, while ignoring the logging messages. token
The initramfs switch_root prompt appears. ip
Remount the file system as writable: ci
switch_root:/# mount –o remount,rw /sysroot
switch_root:/# chroot /sysroot
The prompt changes to sh-4.2#.
Note that if the system is not writable, the passwd tool fails with the following error:
Authentication token manipulation error
sh-4.2# touch /.autorelabel
Alternatively, to save the time it takes to relabel a large disk, you can omit this step provided you included the enforcing=0 option in step 3.
sh-4.2# mount –o remount,ro /
With an encrypted file system, a password or phrase is required at this point. However the password prompt might not appear as it is obscured by logging messages. You can press and hold the Backspace key to see the prompt. Release the key and enter the password for the encrypted file system, while ignoring the logging messages.
NOTE
Note that the SELinux relabeling process can take a long time. A system reboot will occur automatically when the process is complete.
# restorecon /etc/shadow
Enter the following commands to turn SELinux policy enforcement back on and verify that it is on:
# setenforce 1
# getenforce
Enforcing