-
-
Couldn't load subscription status.
- Fork 153
Open
Description
Hello there and thanks for this project! :)
I spent a couple hours debugging this issue the other day. I think the issue is that the resize script:
nixos-generators/formats/vm-nogui.nix
Lines 2 to 11 in fb30cf1
| resize = pkgs.writeScriptBin "resize" '' | |
| if [ -e /dev/tty ]; then | |
| old=$(stty -g) | |
| stty raw -echo min 0 time 5 | |
| printf '\033[18t' > /dev/tty | |
| IFS=';t' read -r _ rows cols _ < /dev/tty | |
| stty "$old" | |
| stty cols "$cols" rows "$rows" | |
| fi | |
| ''; # https://unix.stackexchange.com/questions/16578/resizable-serial-console-window |
I think the issue is that the script runs for both interactive and non-interactive sessions. Also, it shouldn't need to run eg when through SSH, but it does because it is sourced in /etc/profile.
Metadata
Metadata
Assignees
Labels
No labels