mkosi: Enable Autologin= again on Debian
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 2 Aug 2024 14:22:37 +0000 (16:22 +0200)
committerLuca Boccassi <bluca@debian.org>
Thu, 15 Aug 2024 13:04:41 +0000 (14:04 +0100)
Debian uses /usr/bin/login from the shadow package instead of util-linux
which doesn't support credentials. Let's enable autologin the old
fashioned way for now.

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=833256
(cherry picked from commit ea696c5f5300c240ae2749f7791aaa78837d556b)

mkosi.conf.d/10-debian-ubuntu/mkosi.conf

index 43e078117f2c46caa853b7fd776e6197b813dddc..d14746f1ed829956415636d4aea4a9aa7306a8de 100644 (file)
@@ -8,6 +8,10 @@ Distribution=|ubuntu
 PackageManagerTrees=mkosi-pinning.pref:/etc/apt/preferences.d/mkosi-pinning.pref
 
 [Content]
+# Debian ships /usr/bin/login from shadow instead of util-linux which doesn't support credentials so we
+# enable autologin the old-fashioned way.
+Autologin=yes
+
 VolatilePackages=
         libnss-myhostname
         libnss-mymachines