From 406c0b869ee8620cbb483d5db292771c2cc5ddbf Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Wed, 6 Apr 2022 10:11:43 -0500 Subject: [PATCH] Allow access to the emergency shell By default, the emergency shell prompts for the root password. If the root account is locked, the emergency shell is unusable. This makes it impossible to troubleshoot issues before the network is available. Fortunately, systemd can be configured to skip the root password prompt and allow access to the emergency shell with an environment variable. --- .../etc/systemd/system/emergency.service.d/sulogin-force.conf | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 overlay/etc/systemd/system/emergency.service.d/sulogin-force.conf diff --git a/overlay/etc/systemd/system/emergency.service.d/sulogin-force.conf b/overlay/etc/systemd/system/emergency.service.d/sulogin-force.conf new file mode 100644 index 0000000..9bdc4f2 --- /dev/null +++ b/overlay/etc/systemd/system/emergency.service.d/sulogin-force.conf @@ -0,0 +1,2 @@ +[Service] +Environment=SYSTEMD_SULOGIN_FORCE=1