installer: also match qemu and serial consoles for prompting qrcode
All checks were successful
checks / check-links (pull_request) Successful in 21s
checks / checks-impure (pull_request) Successful in 1m54s
checks / checks (pull_request) Successful in 4m24s

This commit is contained in:
Jörg Thalheim 2024-03-17 19:14:24 +01:00
parent d7939e3cba
commit 2dcdcd98e9

View File

@ -37,7 +37,7 @@
};
services.getty.autologinUser = lib.mkForce "root";
programs.bash.interactiveShellInit = ''
if [ "$(tty)" = "/dev/tty1" ]; then
if [[ "$(tty)" =~ /dev/(tty1|hvc0|ttyS0)$ ]]; then
echo -n 'waiting for tor to generate the hidden service'
until test -e /var/shared/qrcode.utf8; do echo -n .; sleep 1; done
echo