Hi @newbietolinux
I made some notes a while ago when I too became a little pedantic about this message. The following is a result of my research at the time:
consolefont
The consolefont
hook is enabled by default. If no console font is defined, a warning message is triggered. While this warning can be safely ignored, it does serve as a reminder that further configuration is possible, otherwise, there is no real benefit in keeping the hook, unless you actually wish to specify a font.
The technically correct solution would be to remove the consolefont
build hook from /etc/mkinitcpio.conf
; otherwise, your only resolve is to ignore the warning (treat it as noise), or configure a console font.
What I did to change the default console font
In this instance I’ll simply fill in the blanks with sensible defaults (for me).
1. Provide a console font name in /etc/vconsole.conf
:
cat /etc/vconsole.conf
# This was my initial output (not overly exciting)
KEYMAP=au
FONT=
FONT_MAP=
-
The virtual console typically uses CP437 by default (for reference only).
-
The console font name is taken from the list in /usr/share/kbd/consolefonts/
.
-
The KEYMAP value was changed from au
to us
(defaults to us
if left empty).
sudo nano /etc/vconsole.conf
# These are the changes made (my typical defaults)
KEYMAP=us
FONT=default8x16
FONT_MAP=UTF-8
2. Add setfont
to the BINARIES array in /etc/mkinitcpio.conf
:
If the consolefont
build hook is enabled and a console font is specified in /etc/vconsole.conf
, then setfont
must be added to the BINARIES array in /etc/mkinitcpio.conf
.
sudo nano /etc/mkinitcpio.conf
# Added setfont to the BINARIES array
BINARIES=(setfont)
3. Check that graphics the driver is referenced in
# Verify the graphic driver is set (AMD:amdgpu / radeon, Nvidia:nouveau, Intel:i915)
BINARIES=(radeon)
4. Check that locale is set properly in /etc/locale.conf
:
LANG=en_AU.UTF-8
5. Finally, enable these changes and reboot:
sudo mkinitcpio -P
As far as I’m aware, simply removing the consolefont
hook would cause the message to not show, and would otherwise do no real harm. Keep in mind, I didn’t perform an exhaustive search on this point.
Additionally, before changing the font globally, I’d recommend seeking advice on the better fonts to use for the purpose.
As you will see, the font I used (in my notes) was the default font, in any case. I did this in lieu of changing to another font at a later date (something I simply forgot about); but, at least the message was gone.
Simply removing the hook would still have done that.
I hope this information is useful and that you can draw your own conclusions as to whether making any changes is worth your effort.
Cheers.