openSUSE / jeos-firstboot

Lightweight firstboot wizard systemd service for SLE and openSUSE JeOS Images
MIT License
14 stars 13 forks source link

Skip broken consoles (bsc#1195975) #88

Closed Vogtinator closed 2 years ago

Vogtinator commented 2 years ago

Currently it starts dialog for all consoles listed in /proc/consoles, but some of them might not be working (e.g. not set up, see also bsc#1175514#c26). When dialog is used on one of those consoles, it attempts to use stderr first and if even that fails, /dev/tty. As a result, starting dialog on a broken console causes a conflict with dialog on a working console, and weird behaviour occurs.

Use "stty size" to check whether the console is usable before starting dialog.

Vogtinator commented 2 years ago

I added another somewhat related tiny fix on top