Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 May 2022 00:14:48 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 264226] setting kern.vty=sc causes hang during boot
Message-ID:  <bug-264226-227-bGM8gRLBQ3@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-264226-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-264226-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264226

--- Comment #4 from Ed Maste <emaste@freebsd.org> ---
(In reply to Kubilay Kocak from comment #3)

There's no need to include a log - this behaviour is clear from the code.

References:
sys/amd64/amd64/machdep.c
sys/kern/kern_cons.c

The priority order for choosing a console is:

- sc, if kern.vty=3Dsc
- vt, if kern.vt=3Dvt
- vt, if EFI boot (via vty_set_preferred)
- vt
- sc

(there's some redundancy left over, from the iterative approach we took to
changing the default)

Moving the vty_set_preferred handling to the top of the list would have the
behaviour you describe, but would mean the system ignores the user's setting
when it has a preferred choice.

The easiest way to address this will be to just remove sc from GENERIC.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-264226-227-bGM8gRLBQ3>