mirror of
https://github.com/systemd/systemd.git
synced 2024-10-27 01:55:22 +03:00
Merge pull request #33886 from DaanDeMeyer/autologin
Two mkosi improvements
This commit is contained in:
commit
3a5d72d8a3
@ -30,7 +30,6 @@ CacheDirectory=build/mkosi.cache
|
||||
|
||||
[Content]
|
||||
BuildSourcesEphemeral=yes
|
||||
Autologin=yes
|
||||
|
||||
ExtraTrees=
|
||||
mkosi.crt:/usr/lib/verity.d/mkosi.crt # sysext verification key
|
||||
@ -134,7 +133,12 @@ Packages=
|
||||
zstd
|
||||
|
||||
[Host]
|
||||
Credentials=journal.storage=persistent
|
||||
Credentials=
|
||||
journal.storage=persistent
|
||||
tty.serial.hvc0.agetty.autologin=root
|
||||
tty.serial.hvc0.login.noauth=yes
|
||||
tty.console.agetty.autologin=root
|
||||
tty.console.login.noauth=yes
|
||||
Incremental=yes
|
||||
RuntimeBuildSources=yes
|
||||
RuntimeScratch=no
|
||||
|
@ -43,6 +43,7 @@ Packages=
|
||||
glibc-locale-base
|
||||
gnutls
|
||||
grep
|
||||
group(wheel)
|
||||
gzip
|
||||
iputils
|
||||
kernel-default
|
||||
|
@ -3,7 +3,20 @@
|
||||
set -e
|
||||
set -o nounset
|
||||
|
||||
useradd --uid 4711 --create-home --user-group testuser
|
||||
if [[ "$DISTRIBUTION" =~ ubuntu|debian ]]; then
|
||||
SUDO_GROUP=sudo
|
||||
else
|
||||
SUDO_GROUP=wheel
|
||||
fi
|
||||
|
||||
useradd \
|
||||
--uid 4711 \
|
||||
--user-group \
|
||||
--create-home \
|
||||
--password "$(openssl passwd -1 testuser)" \
|
||||
--groups "$SUDO_GROUP",systemd-journal \
|
||||
--shell /bin/bash \
|
||||
testuser
|
||||
|
||||
if command -v authselect >/dev/null; then
|
||||
# authselect 1.5.0 renamed the minimal profile to the local profile without keeping backwards compat so
|
||||
|
Loading…
Reference in New Issue
Block a user