]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
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)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 5 Aug 2024 13:00:24 +0000 (15:00 +0200)
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

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