You are not logged in.

#1 2023-01-25 08:29:24

x-yuri
Member
Registered: 2013-01-06
Posts: 152

mkinitcpio: WARNING: consolefont: no font found in configuration

Hi,

I have this warning every time mkinitcpio runs and it just occurred to me that that must be owing to me having skipped the "create /etc/vconsole.conf" step. If that is so, I want the default settings. And the thing is I can't find this info.

Another option is probably to remove consolefont from the hooks in /etc/mkinitcpio.conf. But I'm not sure if that's a good idea. And I bet I'll need to "resolve conflicts" every time that file changes.

Any suggestions are welcome.

Offline

#2 2023-01-25 08:42:17

seth
Member
Registered: 2012-09-03
Posts: 35,121

Re: mkinitcpio: WARNING: consolefont: no font found in configuration

https://gitlab.archlinux.org/archlinux/ … issues/139

And I bet I'll need to "resolve conflicts" every time that file changes.

You'll probably occasionally get pacnew files and then merge them (or not), but a custom mkinitcpio.conf is pretty much "normal"

Offline

#3 2023-01-25 09:31:40

x-yuri
Member
Registered: 2013-01-06
Posts: 152

Re: mkinitcpio: WARNING: consolefont: no font found in configuration

I understand that changing configs is normal, but over time I came to avoid changing files owned by packages where possible (e.g. using *.d directories). I even wrote a script to help me with upgrades, but still...

And the issue with determining the default font is that it's chosen dynamically? And that the kernel doesn't say which font it chose (journalctl -b)? And that there's no getfont?

Last edited by x-yuri (2023-01-25 09:40:27)

Offline

#4 2023-01-25 10:07:57

seth
Member
Registered: 2012-09-03
Posts: 35,121

Re: mkinitcpio: WARNING: consolefont: no font found in configuration

The issue is that the consolefont hook was enabled by default and makes no sense when there's no console font defined and instead of silently ignoring this informs you about that.
Arguebly the hooks behavior is fine (assuming it was added to do something and the user made an error in not also setting a font) but in any event the message is just noise, you can ignore it.

The technically correct solution would be to remove it from mkinitcpio.conf as you neither want nor benefit from it.

Offline

#5 2023-01-27 07:04:26

x-yuri
Member
Registered: 2013-01-06
Posts: 152

Re: mkinitcpio: WARNING: consolefont: no font found in configuration

Oh, initially I thought that the kernel sets a font in any case. But judging from what you're saying it appears that the kernel does so only when the consolefont hook is present and the font is set in /etc/{vconsole,locale}.conf (when a font is added to the image). Otherwise the system font (the one that comes with BIOS/UEFI) is used.

Offline

#6 2023-01-27 07:38:53

d.ALT
Member
Registered: 2019-05-10
Posts: 546

Re: mkinitcpio: WARNING: consolefont: no font found in configuration

x-yuri wrote:

only when the consolefont hook is present

Indeed.
You can choose whether to use it or not.
More infos on the relevant WIKI's page.


<49,17,III,I>    Fama di loro il mondo esser non lassa;
<50,17,III,I>    misericordia e giustizia li sdegna:
<51,17,III,I>    non ragioniam di lor, ma guarda e passa.

Offline

#7 2023-01-27 08:16:20

seth
Member
Registered: 2012-09-03
Posts: 35,121

Re: mkinitcpio: WARNING: consolefont: no font found in configuration

The kernel does set a font in any case:
https://wiki.archlinux.org/title/Linux_console#Fonts

But the consolefont hook only makes sense if you wish to alter that default behavior.
For non-english speakers this is probably a good idea anyway (since you only have a limited set of charaters and want those to cover the pecularities of your native tongue)

Offline

#8 2023-01-27 10:48:39

x-yuri
Member
Registered: 2013-01-06
Posts: 152

Re: mkinitcpio: WARNING: consolefont: no font found in configuration

By default, the virtual console uses the kernel built-in font with a CP437 character set[1], but this can be easily changed.

Oh, I've seen this line. The thing is... which font is it exactly? `ls /usr/share/kbd/consolefonts/*437*` finds nothing. Or is it part of the kernel and can't be chosen explicitly?

Last edited by x-yuri (2023-01-27 10:49:39)

Offline

#9 2023-01-27 14:21:58

seth
Member
Registered: 2012-09-03
Posts: 35,121

Re: mkinitcpio: WARNING: consolefont: no font found in configuration

"built-in font"
And then

The wiki wrote:

The kernel offers about 15 built in fonts to choose from, from which the officially supported kernels provide two: VGA 8x16 font (CONFIG_FONT_8x16) and Terminus 16x32 font (CONFIG_FONT_TER16x32). The kernel chooses the one to use based on its evaluation of the screen resolution. Another builtin font can be forced upon by kernel parameters boot parameter setting such as fbcon=font:TER16x32.

I suspect default8x16, but don't see the terminus font as file.

Offline

Board footer

Powered by FluxBB