Set SHELL variable in tty1
authorDarshaka Pathirana <dpat@syn-net.org>
Fri, 11 Nov 2022 15:24:45 +0000 (16:24 +0100)
committerDarshaka Pathirana <dpat@syn-net.org>
Fri, 11 Nov 2022 15:34:58 +0000 (16:34 +0100)
commit7422d318f84aaad3452e3c5a8bdcbc6ff252c152
treee94b8bcb0ed92deb18c7d6f8c980452d35ccaa99
parentacf26ea891694bed405d592b29d3817de97ee4ce
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
etc/grml/fai/config/files/etc/systemd/system/getty@tty1.service.d/override.conf/GRMLBASE