mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-13 14:40:22 +00:00
nanobsd: Fix cust_comconsole search patterns
The current patterns are outdated, and may produce "offifexists", after
e310437971
("For video consoles, only launch a getty if the device
exists.").
Fix the expressions to:
1. Disable getty(8) on the virtual syscons(4) or vt(4) terminals
(/dev/ttyv*).
2. Enable the use of the first serial port as the system console.
Reviewed by: imp
Approved by: emaste (mentor)
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D47586
This commit is contained in:
parent
4223c668e4
commit
0f7b0db5dd
@ -742,10 +742,10 @@ UsbDevice ( ) {
|
||||
|
||||
cust_comconsole ( ) (
|
||||
# Enable getty on console
|
||||
sed -i "" -e /tty[du]0/s/off/on/ ${NANO_WORLDDIR}/etc/ttys
|
||||
sed -i "" -e '/^tty[du]0/s/off/onifconsole/' ${NANO_WORLDDIR}/etc/ttys
|
||||
|
||||
# Disable getty on syscons devices
|
||||
sed -i "" -e '/^ttyv[0-8]/s/ on/ off/' ${NANO_WORLDDIR}/etc/ttys
|
||||
# Disable getty on syscons or vt devices
|
||||
sed -i "" -E '/^ttyv[0-8]/s/\ton(ifexists)?/\toff/' ${NANO_WORLDDIR}/etc/ttys
|
||||
|
||||
# Tell loader to use serial console early.
|
||||
echo "${NANO_BOOT2CFG}" > ${NANO_WORLDDIR}/boot.config
|
||||
|
Loading…
Reference in New Issue
Block a user