From dff15426f17e8f40947528de8229857351234fd6 Mon Sep 17 00:00:00 2001 From: Will Woods Date: Fri, 10 Jan 2014 14:54:26 -0500 Subject: [PATCH] Activate anaconda-shell@.service on switch to empty VT (#980062) Right now, logind reserves tty6 for a login shell, which is not what we want - normally anaconda puts Xorg there, and there's no need for a login prompt anyway. This configures logind to activate "anaconda-shell@.service" when a user switches to an unused tty, and reserves tty2 for that purpose (which is where users expect a shell anyway). This will avoid us having login prompts that users don't know what to do with. It also probably saves us a little bit of RAM. --- share/runtime-postinstall.tmpl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/share/runtime-postinstall.tmpl b/share/runtime-postinstall.tmpl index 93ea12b5..55e6362c 100644 --- a/share/runtime-postinstall.tmpl +++ b/share/runtime-postinstall.tmpl @@ -38,6 +38,10 @@ systemctl mask fedora-configure.service fedora-loadmodules.service \ fedora-autorelabel.service fedora-autorelabel-mark.service \ fedora-wait-storage.service media.mount +## 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 + ## Don't write the journal to the overlay, just keep it in RAM remove var/log/journal