sulogin: Read SYSTEMD_SULOGIN_FORCE from kernel cmdline
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 8 May 2023 09:03:32 +0000 (11:03 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Sat, 13 May 2023 07:16:55 +0000 (09:16 +0200)
commitfecbce1fc654076a2fc0922e6d36e5300ea04cdf
treee8c46d53d0640d78905b4076eb4c0f82816ffe83
parent27cead47bebd37c16d7f50e571e3dcc1ae6589d2
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.
mkosi.conf.d/10-systemd.conf
src/sulogin-shell/sulogin-shell.c