Booting into Rescue Mode
After a bad change, a service hangs the boot. You have console access and the root password. How do you boot once into single-user rescue mode without changing the default?
Choose one answer
Edit /etc/default/grub from the GRUB menu, add single, and press Enter.
/etc/default/grub
single
Press e, add systemd.unit=rescue.target to the linux line, Ctrl+X.
e
systemd.unit=rescue.target
linux
Choose the rescue kernel entry, which boots into the emergency shell with no password.
Run systemctl set-default rescue.target from the GRUB command line, then boot.
systemctl set-default rescue.target