Early Shell Access
In some cases, the system may fail to boot due to the failure of a critical service. If this happens, you can follow these steps to diagnose the issue with systemd services:
-
Increase the systemd log level using the previously mentioned option, and load the image.
-
Reboot the system. As expected, you will encounter a boot failure.
-
Force reboot the machine. When the machine starts again, interrupt the bootloader and add the following to the bootloader command line:
rescue systemd.setenv=SYSTEMD_SULOGIN_FORCE=1
To modify the bootloader command, select the boot option and then press the
e
key. -
You will now enter an early shell environment. Here, you can access the logs from the previous boot using
journalctl
. The logs will help you identify any service failures.