You are not logged in.

#1 2022-11-21 04:19:17

jb.1234abcd
Member
Registered: 2013-10-14
Posts: 43

[mkinitcpio-33-1-any] [testing] - consolefont: no font found in config

-> 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

#2 2022-11-21 06:17:33

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,463

Re: [mkinitcpio-33-1-any] [testing] - consolefont: no font found in config

Have you set a font in /etc/vconsole.conf? If not, don't use the consolefont hook.

Offline

#3 2022-11-25 05:03:43

nibazshab
Member
Registered: 2022-08-25
Posts: 53

Re: [mkinitcpio-33-1-any] [testing] - consolefont: no font found in config

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

#4 2022-11-25 06:58:15

astralc
Member
Registered: 2022-09-17
Posts: 64

Re: [mkinitcpio-33-1-any] [testing] - consolefont: no font found in config

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

#5 2022-11-25 13:49:41

Trevor_B
Member
Registered: 2019-12-28
Posts: 84

Re: [mkinitcpio-33-1-any] [testing] - consolefont: no font found in config

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

#6 2022-11-25 15:21:57

seth
Member
Registered: 2012-09-03
Posts: 49,981

Re: [mkinitcpio-33-1-any] [testing] - consolefont: no font found in config

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

#7 2022-11-25 16:06:13

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,130

Re: [mkinitcpio-33-1-any] [testing] - consolefont: no font found in config

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

#8 2022-11-25 16:15:39

seth
Member
Registered: 2012-09-03
Posts: 49,981

Re: [mkinitcpio-33-1-any] [testing] - consolefont: no font found in config

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

#9 2022-11-25 16:18:05

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,425

Re: [mkinitcpio-33-1-any] [testing] - consolefont: no font found in config

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

#10 2022-11-25 16:28:21

Trevor_B
Member
Registered: 2019-12-28
Posts: 84

Re: [mkinitcpio-33-1-any] [testing] - consolefont: no font found in config

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

#11 2022-11-25 16:40:58

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,130

Re: [mkinitcpio-33-1-any] [testing] - consolefont: no font found in config

Ah, thanks. That is much more intelligible than mkinitcpio -H kms!

seth wrote:

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

#12 2022-11-25 16:43:52

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,130

Re: [mkinitcpio-33-1-any] [testing] - consolefont: no font found in config

Trevor_B wrote:

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

#13 2022-11-25 17:41:54

icar
Member
From: Catalunya
Registered: 2020-07-31
Posts: 442

Re: [mkinitcpio-33-1-any] [testing] - consolefont: no font found in config

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

#14 2022-11-25 20:39:53

seth
Member
Registered: 2012-09-03
Posts: 49,981

Re: [mkinitcpio-33-1-any] [testing] - consolefont: no font found in config

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

#15 2022-11-26 09:12:16

nl6720
The Evil Wiki Admin
Registered: 2016-07-02
Posts: 592

Re: [mkinitcpio-33-1-any] [testing] - consolefont: no font found in config

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.

Offline

#16 2022-11-26 09:14:45

nl6720
The Evil Wiki Admin
Registered: 2016-07-02
Posts: 592

Re: [mkinitcpio-33-1-any] [testing] - consolefont: no font found in config

jb.1234abcd wrote:
-> 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

#17 2022-11-26 09:14:51

icar
Member
From: Catalunya
Registered: 2020-07-31
Posts: 442

Re: [mkinitcpio-33-1-any] [testing] - consolefont: no font found in config

nl6720 wrote:
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

Board footer

Powered by FluxBB