From: Daan De Meyer Date: Wed, 31 Jul 2024 15:38:12 +0000 (+0200) Subject: mkosi: Switch to autologin via credentials X-Git-Tag: v257-rc1~787^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3db96f230725c89c8c01bd5d64f4456bfa1b147;p=thirdparty%2Fsystemd.git 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. --- diff --git a/mkosi.conf b/mkosi.conf index 527d08a1614..e6b0e41135c 100644 --- a/mkosi.conf +++ b/mkosi.conf @@ -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