-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
After update to zfsbootmenu zfsbootmenu-2.2.1_1: error mesage during boot: setfont: ERROR kdfontop.c:183 put_font_kdfontop: Unable to load such font with such kernel version #46758
Comments
ZBM is just a custom initramfs, so it's the exact same thing as #45216 |
Consider updating to Kernel 6.5.x - 6.3 is EOL and won't receive any more updates. If you use the binary release EFI from https://get.zfsbootmenu.org/efi do you get the same |
Thanks, Zach, for your reply.
from /boot/efi/EFI/void/refind_linux.conf: FYI:
|
Doh. Okay.
The ZFSBootMenu 2.2.1 release binaries are built with Kernel 6.1.55.
That's what I was looking for. For what it's worth,
I'll look into this option - thanks for noting that it worked. For now, I the easiest thing is to just permanently add that to
Where did you comment out |
|
The EFI binary ships with the USB teardown hook enabled by default. It's not needed by all users, but it also doesn't hurt to have enabled globally. |
Yeah, that's it. "Tearing down USB controller..." Just tested with "fbcon=nodefer" "hard-coded" into kcl: error message is gone, but font size is quite small for zbm. So, probably not the best solution. |
Okay, I understand what's happening now. The The font size is different in your locally built ZFSBootMenu image vs the binary release because the console auto-size hook is included by default in the binary release, but not local releases. That feature will be included/enabled by default in the upcoming ZFSBootMenu release. Until then, however, it has to be manually added to ZFSBootMenu. I'd recommend just sticking with the binary release for now - we'll have a few improvements to the local build process in the upcoming release. |
Ok, thanks for your detective work! When you say the "console auto-size" can be added manually, do you mean via the rEFInd kcl or in zbm itself? |
You can add https://github.com/zbm-dev/zfsbootmenu/blob/v2.2.x/contrib/20-console-autosize.sh to your local build. It should be configured as an early setup hook, documented at https://docs.zfsbootmenu.org/en/v2.2.x/man/zfsbootmenu.7.html#options-for-dracut . https://github.com/zbm-dev/zfsbootmenu/blob/v2.2.x/etc/zfsbootmenu/release.conf.d/common.conf is how it's added in for the release EFI builds (along with everything else set for them). Adjust paths as needed, and make sure the script is executable. |
Thanks, again!
So, for now I just live with the tiny font and just wait for the next release. |
Share the changes you made to the files in /etc/zfsbootmenu/ - you've likely just missed one small step. |
Well, I wasn't quite sure if you were talking building my own xbps package or "just" re-configuring zbm, so I tried both. Same approaches (I tried several ways), no luck. I put the script into /stc/zfsbootmenu (& made sure it's executable) and the line zfsbootmenu_early_setup+=" /etc/zfsbootmenu/20-console-autosize.sh " into A) /etc/zfsbootmenu/dracut.conf.d/zfsbootmenu.conf In B) and C) that was the only entry in the file, in A) I added it as second entry (line). (For xbps package building for A) I had to make a patch, so the file would not be overridden in the process.) That is the level I was able to think of / "program". But I don't know if dracut would even read / check those changes / additions. The resulting images / EFI files had the same sizes as the previous ones and thus not surprisingly no effect on the font size. |
The new version of zbm (2.2.2_1) seems to be the same in regards to the issue, but I remember, that the font was that tiny in the early versions of zbm, too, so I don't really mind and settled for the workaround (adding "fbcon=nodefer" at the end of the kcl in /boot/efi/EFI/void/refind_linux.conf). |
Is this a new report?
Yes
System Info
Void 6.3.13_2 x86_64 GenuineIntel uptodate hold rrmDDDFFFFFFFFF
Package(s) Affected
zfsbootmenu zfsbootmenu-2.2.1_1
Does a report exist for this bug with the project's home (upstream) and/or another distro?
There is a similar report about this error message, though it doesn't involve zfs and thus it doesn't involve zfsbootmenu or rEFInd.
#45216
The error message apparently is not critical, but annoying and there should be a way to eliminate the cause. For now, my guess it that the config file for iniramfs might contain the cause of this error message.
In /boot/config-[kernel_version] there are some settings regarding fonts:
As the settings contain "TER" I tried installing terminus-font and rebuilding initramfs for the kernel and zfsbootmenu as well as vmlinz for zfsbootmenu, but booting those didn't make the error message disappear.
As grub isn't installed on my system I haven't tried the same installing grub-terminus as it seems pointless to me.
I thought of commenting out "CONFIG_FONT_TER16x32=y" to "#CONFIG_FONT_TER16x32 is not set", but am unsure if I might break something so I haven't tried that yet.
Expected behaviour
The boot process before zfsbootmenu is showing up should not differ from using initramfs images of previous versions of zfsbootmenu. I.E. this error message should not show up.
Actual behaviour
During boot, after rEFInd screen, just before zfsbootmenu screen the error message shows up:
setfont: ERROR kdfontop.c:183 put_font_kdfontop: Unable to load such font with such kernel version
Steps to reproduce
To test previous version of zfsboootmenu:
Reboot, select initramfs of previous zfsbootmenu version in rEFInd and boot it to see no such error message showing up
The text was updated successfully, but these errors were encountered: