release: Use full window size for installer over serial lines
When running over a serial line we end up defaulting to 80x24, which is rather cramped for many dialog boxes and occupies very little screen space for most modern terminals. Thus, run resizewin -z to set the terminal size if not already known before starting the installer, just as we do for csh and sh login shells already in their default dotfiles. Reviewed by: jhb, gjb Obtained from: CheriBSD Differential Revision: https://reviews.freebsd.org/D34414
This commit is contained in:
parent
4b7f35db44
commit
c080688399
@ -48,6 +48,9 @@ else
|
||||
fi
|
||||
export TERM
|
||||
|
||||
# Query terminal size; useful for serial lines.
|
||||
resizewin -z
|
||||
|
||||
if [ -f /etc/installerconfig ]; then
|
||||
if bsdinstall script /etc/installerconfig; then
|
||||
bsddialog --backtitle "FreeBSD Installer" --title "Complete" --no-cancel --ok-label "Reboot" --pause "Installation of FreeBSD complete! Rebooting in 10 seconds" 10 30 10
|
||||
|
Loading…
Reference in New Issue
Block a user