You are not logged in.
-> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
Booting may fail ?
Last edited by jb.1234abcd (2022-11-21 04:43:39)
Offline
Have you set a font in /etc/vconsole.conf? If not, don't use the consolefont hook.
Online
same problem, how should i do to disable consolefont hook ?
OK, edit /etc/mkinitcpio.conf, find "HOOK=()" and delete "consolefont"
Last edited by nibazshab (2022-11-25 05:09:41)
Offline
There was a change between 32 and 33 - now the default conf include kms, keymap and consolefont hooks (also changed the order little bit). In my case I didn't change mkinicpio.conf when I installed (because I didn't need any special hooks/modules), it installed the changed one as mine was 'UNMODIFIED'.
Offline
Jumping here
I also had that message after doing -Syu this afternoon. After reading the above posts I deleted the word 'consolefont' from the line containing
HOOKS=(base udev autodetect modconf kms keyboard keymap font block filesystems
Booted OK afterwards
is there anything more that I should do ?
Qestion if I had left the word, would it have booted OK ?
And why the change ?
Offline
https://github.com/archlinux/mkinitcpio … e12a95470a
Add keyboard, keymap and consolefont hooks to the examples using encryption. Mostly based on https://wiki.archlinux.org/title/dm-cry … figuration
Looks like copypasta mistake.
Also https://gitlab.archlinux.org/archlinux/ … issues/139
Offline
kms was added in a later commit. Is that one needed? I read the hook help from mkinitcpio, but it just said it added KMS and privacy screens, which left me none the wiser.
[Kernel Mode Setting is my best guess for the acronym, but no idea what that has to do with privacy screens or even what privacy screens are, so guessing all my guesses are wrong. Including this one.]
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
https://wiki.archlinux.org/title/Mkinit … mmon_hooks
https://wiki.archlinux.org/title/Kernel … _KMS_start
It's because otherwise systemd will kick off the graphical.target before you might have a GPU - happens often enough to justify a textblock of the above link…
Offline
kms is a simple way to add all potential kernel modules required for KMS (as you understand it), reduced by the autodetect hook to the ones you are actually using, to the initramfs. The privacy screens are some special modules mostly relevant on certain netbook/chromebook variants. It basically is a simple way to have your graphics modules for KMS in the initramfs without having to fill out the modules line manually.
Offline
Thanks for the links,
I read in the first one
"Note: Remember to regenerate the initramfs after making any changes to /etc/mkinitcpio.conf"
Which I didn't do, Should I run the mkinitcpio -P command anyway ? I presume yes ?
Also I suppose that I could add the 'consolefont' back in the hook line and add the 'Font' line to my vconsole.conf
KEYMAP=fr-latin1
FONT=eurlatgr ( I run a french keybaord but / english system )
Which is the best option ?
Seeing in thet your second link, it seems that this warning will be 'hidden' soon
Thanks in advance
Offline
Ah, thanks. That is much more intelligible than mkinitcpio -H kms!
https://wiki.archlinux.org/title/Kernel … _KMS_start
It's because otherwise systemd will kick off the graphical.target before you might have a GPU - happens often enough to justify a textblock of the above link…
2.2 and 2.2.1 now recommend different things for in-tree modules, unless I've misunderstood. 2.2 says to include in the array of modules, whereas 2.2.1 says to include kms in hooks. I was using the modules array for early KMS and merged kms into the hooks array after the update. I'm guessing having both won't actually hurt anything? I'm tempted to delete the kms hook if all it is going to do is add i915 to the modules? Or should I delete i915 instead?
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
I read in the first one
"Note: Remember to regenerate the initramfs after making any changes to /etc/mkinitcpio.conf"Which I didn't do, Should I run the mkinitcpio -P command anyway ? I presume yes ?
If you didn't make changes, you don't need to regenerate the initramfs. If you mean you made changes but didn't regenerate it then, yes, you should regenerate it unless you've installed a kernel update since (because that would have regenerated the initramfs anyway).
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
I am having an issue with fonts with the latest systemd. I don't know if it's related. My initramfs uses systemd and generating it outputs this:
-> Running build hook: [sd-vconsole]
==> ERROR: sd-vconsole: requested font not found: '/usr/share/fonts/noto/NotoSans-Regular.ttf'
but that's rather curious because:
❯ sudo pacman -Fy /usr/share/fonts/noto/NotoSans-Regular.ttf
usr/share/fonts/noto/NotoSans-Regular.ttf pertany a extra/noto-fonts 20220810-1
❯ pacman -Qo /usr/share/fonts/noto/NotoSans-Regular.ttf
/usr/share/fonts/noto/NotoSans-Regular.ttf pertany a noto-fonts 20220810-1
Offline
I'm tempted to delete the kms hook if all it is going to do is add i915 to the modules? Or should I delete i915 instead?
As V1del pointed out, the kms hook just abstracts adding the GPU kernel module to the MODULES list - whether you have both or either there should lead to the same results (as long as there's an intel GPU)
@icar, NotoSans-Regular.ttf is hardly a usable console font - do you reference it in your vconsole.conf?
https://wiki.archlinux.org/title/Linux_console#Fonts
Offline
I am having an issue with fonts with the latest systemd. I don't know if it's related. My initramfs uses systemd and generating it outputs this:
-> Running build hook: [sd-vconsole] ==> ERROR: sd-vconsole: requested font not found: '/usr/share/fonts/noto/NotoSans-Regular.ttf'
Are you using plymouth? See FS#76654, plymouth-git should be fixed now.
Offline
-> Running build hook: [consolefont] ==> WARNING: consolefont: no font found in configuration
Booting may fail ?
Booting won't fail. It's just an annoying warning. The issue is tracked in https://gitlab.archlinux.org/archlinux/ … issues/139.
Offline
icar wrote:I am having an issue with fonts with the latest systemd. I don't know if it's related. My initramfs uses systemd and generating it outputs this:
-> Running build hook: [sd-vconsole] ==> ERROR: sd-vconsole: requested font not found: '/usr/share/fonts/noto/NotoSans-Regular.ttf'
Are you using plymouth? See FS#76654, plymouth-git should be fixed now.
Thanks, fixed.
@seth I don't reference any font in vconsole.conf
Offline