diff options
| author | Ahmad Khalifa <vexeduxr@FreeBSD.org> | 2026-05-03 13:18:38 +0000 |
|---|---|---|
| committer | Colin Percival <cperciva@FreeBSD.org> | 2026-05-06 16:29:54 +0000 |
| commit | 6a3966f363d3c6d1e84205e93a50d5746570976b (patch) | |
| tree | 6c22ce17b301da6966d04621dba278e40ca221aa | |
| parent | 5f901e157aafa6ed4550fe39dbc121f7668459b7 (diff) | |
vt_core: don't draw the splash if a panic occurred
The shutdown splash draws over all the useful info if ddb(4) is
disabled. Don't draw the splash screen if we're rebooting because of a
panic.
Approved by: re (cperciva)
MFC after: 3 days
(cherry picked from commit bc83f414583ccaf337ef3b7c019df7727d6a3aae)
(cherry picked from commit 3aabec5c8c6a74a4e50640b399a825d9f7adca9a)
| -rw-r--r-- | sys/dev/vt/vt_core.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/vt/vt_core.c b/sys/dev/vt/vt_core.c index 2015d982a560..8360f0b80fb5 100644 --- a/sys/dev/vt/vt_core.c +++ b/sys/dev/vt/vt_core.c @@ -1682,6 +1682,9 @@ vtterm_splash(struct vt_device *vd) uintptr_t image; vt_axis_t top, left; + if (KERNEL_PANICKED()) + return; + if ((vd->vd_flags & VDF_TEXTMODE) != 0 || (boothowto & RB_MUTE) == 0) return; |
