1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-22 17:35:35 +03:00

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.
This commit is contained in:
Luca Boccassi 2024-08-28 13:53:31 +01:00 committed by Luca Boccassi
parent 360b8dc9a6
commit ec54029017
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