]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mkosi: use util-linux's autologin
authorLuca Boccassi <bluca@debian.org>
Wed, 28 Aug 2024 12:53:31 +0000 (13:53 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Wed, 28 Aug 2024 15:32:17 +0000 (16:32 +0100)
login is now from util-linux so credentials are supported.
It also needs to be pulled in as it's Protected: yes rather than
Essential: yes.

Keep the old setting for Ubuntu as that still uses login from shadow.

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

index d14746f1ed829956415636d4aea4a9aa7306a8de..472064e45d01933a8e5247aecc403cf493f3d8d2 100644 (file)
@@ -8,10 +8,6 @@ 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
@@ -58,6 +54,7 @@ Packages=
         knot
         libcap-ng-utils
         locales
+        login
         man-db
         multipath-tools
         ncat
index 1ffa3ab0318ffabfb3b25d93a0584dbea5eaf887..73faafe6c0b875080c6ad9e548a86ec8a128592c 100644 (file)
@@ -8,6 +8,9 @@ Release=noble
 Repositories=universe
 
 [Content]
+# Ubuntu 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
 Packages=
         linux-image-generic
         linux-tools-common