[Bug 282465] Corrupted bootloader font after update to 14.2-STABLE #0 stable/14-4e8444d575 after 26 October

2024-11-02 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=282465

Warner Losh  changed:

   What|Removed |Added

   Assignee|b...@freebsd.org|i...@freebsd.org
 Status|New |In Progress

--- Comment #14 from Warner Losh  ---
Committed to main. Will commit to stable/14 Monday, should be fixed in BETA2
release.
Multiple people have reported this fixes things for them, plus I've booted two
different machines with EFI (one with serial, one without), so I have good
confidence this is fixed.
And I can't find any other bug report for this, so anything new that comes in
will be marked as a duplicate of this one :)

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


[Bug 282465] Corrupted bootloader font after update to 14.2-STABLE #0 stable/14-4e8444d575 after 26 October

2024-11-02 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=282465

--- Comment #13 from commit-h...@freebsd.org ---
A commit in branch main references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=c2ba66d4d01f23303352bfe3cbd50ff5d9a05947

commit c2ba66d4d01f23303352bfe3cbd50ff5d9a05947
Author: Warner Losh 
AuthorDate: 2024-11-02 22:02:44 +
Commit: Warner Losh 
CommitDate: 2024-11-02 22:02:44 +

loader: Fix boot menu on BIOS

Only the gfx-enabled boot loader supports unicode. Otherwise, we have to
use the old cons25 / ibmpc upper code page drawing characters. Check to
see if we have the gfx.term_drawbox function. If we do, we support the
unicode drawing characters. If we don't, then we have an older loader
that doesn't support it *OR* we have the reduced function, text-only
boot loader. In either of those cases, we need to use the old graphics
characters. Abstract all those details into core.hasUnicode function.

PR: 282465
MFC After: 2 day
Sponsored by: Netflix
Differential Revision:  https://reviews.freebsd.org/D47403

 stand/lua/core.lua   |  9 +
 stand/lua/drawer.lua | 32 +++-
 2 files changed, 36 insertions(+), 5 deletions(-)

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


[Bug 282465] Corrupted bootloader font after update to 14.2-STABLE #0 stable/14-4e8444d575 after 26 October

2024-11-02 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=282465

--- Comment #12 from jakub_l...@mailplus.pl ---
(In reply to Martin Birgmeier from comment #8)

So it is quite similar to non UTF-8 with ports in a way (D4PASCIILINES=Y needed
there).

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


[Bug 282465] Corrupted bootloader font after update to 14.2-STABLE #0 stable/14-4e8444d575 after 26 October

2024-11-02 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=282465

--- Comment #11 from Warner Losh  ---
https://reviews.freebsd.org/D47403 works for me.
I also think this may be a duplicate of other, earlier filed bugs on this
topic.

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


[Bug 282465] Corrupted bootloader font after update to 14.2-STABLE #0 stable/14-4e8444d575 after 26 October

2024-11-02 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=282465

--- Comment #10 from Warner Losh  ---
thanks for this analysis... It will save me a lot of time. the drawer.lua stuff
isn't quite right, but it's very close.

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


[Bug 282465] Corrupted bootloader font after update to 14.2-STABLE #0 stable/14-4e8444d575 after 26 October

2024-11-02 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=282465

--- Comment #9 from Martin Birgmeier  ---
(In reply to Martin Birgmeier from comment #8)

Just tried it (without the patch), and it is working.

Use

loader_menu_frame="ascii"

in /boot/loader.conf

-- Martin

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


[Bug 282465] Corrupted bootloader font after update to 14.2-STABLE #0 stable/14-4e8444d575 after 26 October

2024-11-02 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=282465

--- Comment #8 from Martin Birgmeier  ---
I just looked a bit closer at /boot/loader/drawer.lua. It seems you can also
set

loader_menu_frame=ascii

in /boot/loader.conf to achieve the same effect.

-- Martin

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


[Bug 282465] Corrupted bootloader font after update to 14.2-STABLE #0 stable/14-4e8444d575 after 26 October

2024-11-02 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=282465

--- Comment #7 from Martin Birgmeier  ---
(In reply to jakub_lach from comment #6)

I am already using this on my machines, so no worries :-)

As far as I could see, this file just deals with character art for drawing
boxes. It uses escape sequences to draw pretty double lines, but these are not
supported anymore with LOADER_BIOS_TEXTONLY being set.

Using "ascii" instead of "double" seems to use old-fashioned ASCII characters
instead.

-- Martin

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


[Bug 282465] Corrupted bootloader font after update to 14.2-STABLE #0 stable/14-4e8444d575 after 26 October

2024-11-02 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=282465

--- Comment #6 from jakub_l...@mailplus.pl ---
(In reply to Martin Birgmeier from comment #5)

Do you know why double would stop working? Just making sure I know what's going
on, as I really cannot afford to brick loader.

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


[Bug 282465] Corrupted bootloader font after update to 14.2-STABLE #0 stable/14-4e8444d575 after 26 October

2024-11-01 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=282465

--- Comment #5 from Martin Birgmeier  ---
Try this patch on /boot/lua/drawer.lua:

--- /boot/lua/drawer.lua2024-05-10 18:42:55.0 +0200
+++ /tmp/drawer.lua 2024-11-02 07:49:23.444324000 +0100
@@ -210,7 +210,7 @@
if core.isSerialConsole() then
return "ascii"
end
-   return "double"
+   return "ascii"
 end

 local function drawframe()

-- Martin

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


[Bug 282465] Corrupted bootloader font after update to 14.2-STABLE #0 stable/14-4e8444d575 after 26 October

2024-11-01 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=282465

--- Comment #4 from jakub_l...@mailplus.pl ---
(In reply to Martin Birgmeier from comment #3)

No beastie here, just defaults. Ascii border is garbled as previously with
ports.

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


[Bug 282465] Corrupted bootloader font after update to 14.2-STABLE #0 stable/14-4e8444d575 after 26 October

2024-11-01 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=282465

--- Comment #3 from Martin Birgmeier  ---
(In reply to jakub_lach from comment #1)

This commit is certainly the root cause: LOADER_BIOS_TEXTONLY has been turned
on.

Do you have loader_logo="beastie" in /boot/loader.conf? - This is what I have,
and maybe it needs some fancy text graphics capabilities.

-- Martin

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


[Bug 282465] Corrupted bootloader font after update to 14.2-STABLE #0 stable/14-4e8444d575 after 26 October

2024-11-01 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=282465

Martin Birgmeier  changed:

   What|Removed |Added

 CC||d8zne...@aon.at

--- Comment #2 from Martin Birgmeier  ---
I just upgraded to 4e8444d5750a and have the same issue (amd64 and i386)

-- Martin

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


[Bug 282465] Corrupted bootloader font after update to 14.2-STABLE #0 stable/14-4e8444d575 after 26 October

2024-11-01 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=282465

Mark Linimon  changed:

   What|Removed |Added

   Keywords||regression

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


[Bug 282465] Corrupted bootloader font after update to 14.2-STABLE #0 stable/14-4e8444d575 after 26 October

2024-11-01 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=282465

--- Comment #1 from jakub_l...@mailplus.pl ---
I've noticed
https://cgit.freebsd.org/src/commit/?h=stable/14&id=4d3b05a8530e42f7494dd3fbab8d017adb433b14
but it shouldn't brake font? I don't recall I've set anything nonstandard part
from autoboot_delay="1"

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


[Bug 282465] Corrupted bootloader font after update to 14.2-STABLE #0 stable/14-4e8444d575 after 26 October

2024-11-01 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=282465

Bug ID: 282465
   Summary: Corrupted bootloader font after update to 14.2-STABLE
#0 stable/14-4e8444d575 after 26 October
   Product: Base System
   Version: 14.1-STABLE
  Hardware: Any
OS: Any
Status: New
  Severity: Affects Only Me
  Priority: ---
 Component: kern
  Assignee: b...@freebsd.org
  Reporter: jakub_l...@mailplus.pl

26 Oct was fine, now after a rebuild the booting menu looks similar to bug
#275304 (garbled)

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