From 2dcdcd98e94b7f4092e18cca154265c6fbcef082 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sun, 17 Mar 2024 19:14:24 +0100 Subject: [PATCH] installer: also match qemu and serial consoles for prompting qrcode --- nixosModules/installer/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixosModules/installer/default.nix b/nixosModules/installer/default.nix index 5d00cd85..94de49c0 100644 --- a/nixosModules/installer/default.nix +++ b/nixosModules/installer/default.nix @@ -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