From 7422d318f84aaad3452e3c5a8bdcbc6ff252c152 Mon Sep 17 00:00:00 2001 From: Darshaka Pathirana Date: Fri, 11 Nov 2022 16:24:45 +0100 Subject: [PATCH] Set SHELL variable in tty1 The SHELL variable is not set in our tty1 when `run-welcome` is called (instead of agetty(8) + login(1)). So, when invoking `screen` we end up in `/bin/sh` instead of a zsh shell. We also had the same problem for tty2 - tty4 and fixed it in grml/grml-live@6871972 (to fix grml/grml#14). We now use the same approach to fix tty1 although the SHELL variable should (most probably) be set in `run-welcome` and `run-screen` itself. Issue: grml/grml#135 --- .../files/etc/systemd/system/getty@tty1.service.d/override.conf/GRMLBASE | 1 + 1 file changed, 1 insertion(+) diff --git a/etc/grml/fai/config/files/etc/systemd/system/getty@tty1.service.d/override.conf/GRMLBASE b/etc/grml/fai/config/files/etc/systemd/system/getty@tty1.service.d/override.conf/GRMLBASE index e640aff..2e5c7f0 100644 --- a/etc/grml/fai/config/files/etc/systemd/system/getty@tty1.service.d/override.conf/GRMLBASE +++ b/etc/grml/fai/config/files/etc/systemd/system/getty@tty1.service.d/override.conf/GRMLBASE @@ -7,6 +7,7 @@ StandardInput=tty StandardOutput=tty TTYPath=/dev/tty1 TTYVTDisallocate=no +Environment="SHELL=/bin/zsh" ExecStart= ExecStart=-/usr/share/grml-scripts/run-welcome -- 2.1.4