explicitly want systemd-user-sessions before gettys launch

This commit is contained in:
Tobias Powalowski 2023-11-08 17:09:37 +01:00
parent 587fc6e47e
commit 1dbb823b66
2 changed files with 2 additions and 1 deletions

View file

@ -134,7 +134,7 @@ inputrc,mke2fs.conf,nsswitch.conf,protocols,request-key.conf,securetty,services}
### disable systemd services: ### disable systemd services:
for i in binfmt boot-random-seed firstboot hwdb-update journal-{flush,catalog-update} \ for i in binfmt boot-random-seed firstboot hwdb-update journal-{flush,catalog-update} \
machine-id-commit modules-load pcrmachine repart pcrphase{,-sysinit} \ machine-id-commit modules-load pcrmachine repart pcrphase{,-sysinit} \
update-{done,utmp} user-sessions; do update-{done,utmp}; do
_symlink "/etc/systemd/system/systemd-${i}.service" /dev/null _symlink "/etc/systemd/system/systemd-${i}.service" /dev/null
done done
_symlink /etc/systemd/system/ldconfig.service /dev/null _symlink /etc/systemd/system/ldconfig.service /dev/null

View file

@ -12,6 +12,7 @@ Description=Getty on %I
Documentation=man:agetty(8) man:systemd-getty-generator(8) Documentation=man:agetty(8) man:systemd-getty-generator(8)
Documentation=http://0pointer.de/blog/projects/serial-console.html Documentation=http://0pointer.de/blog/projects/serial-console.html
After=systemd-user-sessions.service plymouth-quit-wait.service getty-pre.target After=systemd-user-sessions.service plymouth-quit-wait.service getty-pre.target
Wants=systemd-user-sessions.service
# If additional gettys are spawned during boot then we should make # If additional gettys are spawned during boot then we should make
# sure that this is synchronized before getty.target, even though # sure that this is synchronized before getty.target, even though