Adjust runtime-postinstall.tmpl for systemd config files move

Systemd config files were moved from /etc to /usr/lib/systemd,
so this snippet fails. Instead of editing the config file, just create
a drop-in snippet with the desired configuration.

Backported from lorax commit f38bddac3f44dc36ba5f96d997a533bbcacd6458

Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
This commit is contained in:
Stephen Gallagher 2023-12-13 12:38:55 -05:00
parent 999d7c0eef
commit 4e81f4f810

View File

@ -52,7 +52,8 @@ remove usr/lib/tmpfiles.d/etc.conf
## Make logind activate anaconda-shell@.service on switch to empty VT
symlink anaconda-shell@.service lib/systemd/system/autovt@.service
replace "#ReserveVT=6" "ReserveVT=2" etc/systemd/logind.conf
mkdir usr/lib/systemd/logind.conf.d
append usr/lib/systemd/logind.conf.d/anaconda-shell.conf "[Login]\nReserveVT=2"
## Don't write the journal to the overlay, just keep it in RAM
remove var/log/journal