Per popular demand, if installing from a graphics terminal, run the
installer on a VTY with no kernel messages (VTY 2), show the installer log in real time on VTY 3, and spawn a shell on VTY 4. PR: bin/161047, bin/161048 MFC after: 2 weeks
This commit is contained in:
parent
4b2b8a370c
commit
dc8fd8f2b7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=230482
@ -10,8 +10,19 @@
|
|||||||
|
|
||||||
kbdcontrol -d >/dev/null 2>&1
|
kbdcontrol -d >/dev/null 2>&1
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
# Syscons: use xterm
|
# Syscons: use xterm, start interesting things on other VTYs
|
||||||
TERM=xterm
|
TERM=xterm
|
||||||
|
|
||||||
|
if [ "$EXTERNAL_VTY_STARTED" -ne 1 ]; then
|
||||||
|
vidcontrol -s 2 # Switch to a VTY with no kernel messages
|
||||||
|
# Init will clean these processes up if/when the system
|
||||||
|
# goes multiuser
|
||||||
|
touch /tmp/bsdinstall_log
|
||||||
|
tail -f /tmp/bsdinstall_log > /dev/ttyv2 &
|
||||||
|
/usr/libexec/getty autologin ttyv3
|
||||||
|
EXTERNAL_VTY_STARTED=1
|
||||||
|
trap "vidcontrol -s 1" EXIT
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
# Serial or other console
|
# Serial or other console
|
||||||
echo
|
echo
|
||||||
|
Loading…
Reference in New Issue
Block a user