1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-09 01:18:19 +03:00

mkosi: Switch to autologin via credentials

Let's use the newly added credentials to only enable autologin for
/dev/console (systemd-nspawn) and /dev/hvc0 (qemu) instead of enabling
autologin for every tty.
This commit is contained in:
Daan De Meyer 2024-07-31 17:38:12 +02:00
parent e54a8e0fc3
commit b3db96f230

View File

@ -30,7 +30,6 @@ CacheDirectory=build/mkosi.cache
[Content]
BuildSourcesEphemeral=yes
Autologin=yes
ExtraTrees=
mkosi.crt:/usr/lib/verity.d/mkosi.crt # sysext verification key
@ -134,7 +133,12 @@ Packages=
zstd
[Host]
Credentials=journal.storage=persistent
Credentials=
journal.storage=persistent
tty.serial.hvc0.agetty.autologin=root
tty.serial.hvc0.login.noauth=yes
tty.console.agetty.autologin=root
tty.console.login.noauth=yes
Incremental=yes
RuntimeBuildSources=yes
RuntimeScratch=no