localectl list-keymaps
localectl set-keymap latin
1) add rd.break
and enforcing=0
to the end of the line that starts with linux16
or linux64
in Grub2:
2) when the system boots, run the following command to remount the root filesystem in read-write mode:
mount -o remount,rw /sysroot
3) then run:
chroot /sysroot
4) run:
passwd
5) instruct SELinux to relabel all files upon reboot (because the /etc/shadow
file was changed outside of its regular SELinux context) – run:
touch /.autorelabel
6) type exit to leave the chroot environment. 7) type exit to log out, note this will also reboot the system.
The system will reboot, re-apply all SELinux labels, and present you with a regular login prompt.