diff options
| author | Ahmad Khalifa <vexeduxr@FreeBSD.org> | 2026-05-03 13:18:38 +0000 |
|---|---|---|
| committer | Ahmad Khalifa <vexeduxr@FreeBSD.org> | 2026-05-03 15:15:38 +0000 |
| commit | bc83f414583ccaf337ef3b7c019df7727d6a3aae (patch) | |
| tree | 53ae3b34cb9a318dd3c21fc5bb7f28e92d9bf1dc | |
| parent | 9b0d9401e6a46456a84500375c36008cfcfcc508 (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.
MFC after: 3 days
| -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 68a9a71c3d72..f7cffcea5b92 100644 --- a/sys/dev/vt/vt_core.c +++ b/sys/dev/vt/vt_core.c @@ -1684,6 +1684,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; |
