summaryrefslogtreecommitdiff
path: root/mkosi.conf.d
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2023-05-08 11:03:32 +0200
committerDaan De Meyer <daan.j.demeyer@gmail.com>2023-05-13 09:16:55 +0200
commitfecbce1fc654076a2fc0922e6d36e5300ea04cdf (patch)
treee8c46d53d0640d78905b4076eb4c0f82816ffe83 /mkosi.conf.d
parent27cead47bebd37c16d7f50e571e3dcc1ae6589d2 (diff)
downloadsystemd-fecbce1fc654076a2fc0922e6d36e5300ea04cdf.tar.gz
sulogin: Read SYSTEMD_SULOGIN_FORCE from kernel cmdline
This allows setting it on the kernel cmdline and having it work automatically without having to write any dropins or such. Also enable the option in mkosi so that we can debug the initrd properly with a locked root account.
Diffstat (limited to 'mkosi.conf.d')
-rw-r--r--mkosi.conf.d/10-systemd.conf2
1 files changed, 2 insertions, 0 deletions
diff --git a/mkosi.conf.d/10-systemd.conf b/mkosi.conf.d/10-systemd.conf
index a19d464a09..d82a59dd03 100644
--- a/mkosi.conf.d/10-systemd.conf
+++ b/mkosi.conf.d/10-systemd.conf
@@ -28,3 +28,5 @@ KernelCommandLineExtra=systemd.crash_shell
printk.devkmsg=on
# Tell networkd to manage the ethernet interface.
ip=enp0s1:any
+ # Make sure sulogin works even with a locked root account.
+ SYSTEMD_SULOGIN_FORCE=1