mkosi: use util-linux's autologin

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.

(cherry picked from commit ec54029017)
This commit is contained in:
Luca Boccassi 2024-08-28 13:53:31 +01:00 committed by Daan De Meyer
parent 37e130e203
commit dd577dde5e
2 changed files with 4 additions and 4 deletions

View 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

View 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