From: Darshaka Pathirana Date: Fri, 11 Nov 2022 15:24:45 +0000 (+0100) Subject: Set SHELL variable in tty1 X-Git-Tag: v0.42.1~1^2 X-Git-Url: https://git.grml.org/?p=grml-live.git;a=commitdiff_plain;h=7422d318f84aaad3452e3c5a8bdcbc6ff252c152 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 --- 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