You are not logged in.

#1 2023-08-02 14:11:10

renegat
Member
From: Europe
Registered: 2012-12-28
Posts: 88

[SOLVED] systemd-254-1: mkinitcpio hook consolefont not applied

Since update to systemd-254-1 systemd-libs-254-1  systemd-sysvcompat-254-1

- encryption prompt is reverted to us-keyboard instead of de-keyboard layout with default small font-size instead of set big-font size for partially blind making it nearly impossible to enter password.

mkinitcpio.conf hooks:

HOOKS="base udev autodetect modconf kms block keyboard sd-vconsole encrypt filesystems fsck"

Downgrading to previous systemd-253.7-1 solves it for the moment.

Addenum:
Even with

HOOKS="base udev autodetect modconf kms block keyboard keymap consolefont encrypt filesystems fsck"

consolefont is (still) not applied.

Last edited by renegat (2023-08-24 21:05:44)

Offline

#2 2023-08-02 14:28:17

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 22,387

Re: [SOLVED] systemd-254-1: mkinitcpio hook consolefont not applied

Why are you using sd-vconsole hook when not using systemd for the initramfs as a whole? you should be using the keymap and consolefonts hooks instead when using the busybox based initramfs: https://wiki.archlinux.org/title/Mkinit … mmon_hooks

Last edited by V1del (2023-08-02 14:28:54)

Offline

#3 2023-08-02 14:40:14

renegat
Member
From: Europe
Registered: 2012-12-28
Posts: 88

Re: [SOLVED] systemd-254-1: mkinitcpio hook consolefont not applied

Because the 'old' way using consolefont hook stopped working a while ago and it was advised to use sd-vconsole instead.
See: FS#78052 - [mkinitcpio][systemd] 253.2-1 not setting console font and here.

Addenum:
With mkinitcpio.conf

HOOKS="base udev autodetect modconf kms block consolefont keyboard keymap encrypt filesystems fsck"

and systemd 254.1 the keyboard layout is applied correctly but the font stays small.

But than there is a warning about
"setfont: KDFONTOP: Function not implemented" over the prompt for the password.

With

BINARIES="setfont"

added in mkinitcpio.conf another error message appears early on boot:

"setfont: ERROR kdfontop.c:183 put_font_kdfontop : Unable to load sich font with such kernel version"

There are other problems (long delays / freezes) on reboot and shutdown too with systemd 254.1

Last edited by renegat (2023-08-02 15:17:00)

Offline

#4 2023-08-08 00:50:24

KaTsUjA
Member
From: Europe
Registered: 2023-08-08
Posts: 2

Re: [SOLVED] systemd-254-1: mkinitcpio hook consolefont not applied

I solved it like this:
HOOKS="base udev autodetect modconf kms block consolefont keyboard keymap encrypt filesystems fsck"

HOOKS="base udev autodetect modconf kms block sd-vconsole keyboard keymap encrypt filesystems fsck"

without adding BINARIES="setfont"

thank you very much


Desktop:  Mainboard: Gigabyte Aorus Pro rev1,0 chipset z390 , CPU: Intel i5 9600k Intel UHD Graphics 630, RAM: Corsair Vengeance RGB PRO 32 GB, Scheda video: AMD Sapphire RX580 Nitro+.
Laptop: Microsoft Surface Laptop 4 - 13.5" AMD Ryzen r5 8GB 256GB Platino
OS: Arch Linux
WM: Hyprland

Offline

#5 2023-08-10 18:48:05

renegat
Member
From: Europe
Registered: 2012-12-28
Posts: 88

Re: [SOLVED] systemd-254-1: mkinitcpio hook consolefont not applied

This bug is present since 15 January 2020 - see here

Replacing 'keymap consolefont' hooks with 'sd-vconsole' was just a workaround which does not work at all since systemd 254.1 update anymore.

The consolefont hook does not work neither with or without 'setfont' binaries set.

Offline

#6 2023-08-13 13:34:56

KaTsUjA
Member
From: Europe
Registered: 2023-08-08
Posts: 2

Re: [SOLVED] systemd-254-1: mkinitcpio hook consolefont not applied

For me it worked on both laptop and desktop pc in signature with 254.1
BINARIES=""
HOOKS="base udev autodetect modconf kms block sd-vconsole keyboard keymap encrypt filesystems fsck"

Last edited by KaTsUjA (2023-08-13 14:03:00)


Desktop:  Mainboard: Gigabyte Aorus Pro rev1,0 chipset z390 , CPU: Intel i5 9600k Intel UHD Graphics 630, RAM: Corsair Vengeance RGB PRO 32 GB, Scheda video: AMD Sapphire RX580 Nitro+.
Laptop: Microsoft Surface Laptop 4 - 13.5" AMD Ryzen r5 8GB 256GB Platino
OS: Arch Linux
WM: Hyprland

Offline

#7 2023-08-14 21:22:38

linerman
Member
Registered: 2021-02-16
Posts: 80

Re: [SOLVED] systemd-254-1: mkinitcpio hook consolefont not applied

renegat wrote:

This bug is present since 15 January 2020 - see here

Replacing 'keymap consolefont' hooks with 'sd-vconsole' was just a workaround which does not work at all since systemd 254.1 update anymore.

The consolefont hook does not work neither with or without 'setfont' binaries set.

I confirm that sd-vconsole instead of consolefont works and you need to check entries' order

 HOOKS="base udev autodetect modconf kms block sd-vconsole keyboard keymap encrypt filesystems fsck" 

looks ok.
Binaries should be empty.

Offline

#8 2023-08-14 23:17:21

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

Re: [SOLVED] systemd-254-1: mkinitcpio hook consolefont not applied

How in the world are there so many people still using strings in mkinitcpio.conf when it switched to arrays almost 5 years ago?

Offline

#9 2023-08-24 21:28:58

renegat
Member
From: Europe
Registered: 2012-12-28
Posts: 88

Re: [SOLVED] systemd-254-1: mkinitcpio hook consolefont not applied

The underlying bug was 'solved': See here

I cannot see how using double quotes or parentheses in the mkinitcpio.conf 'arrays' makes any difference according to the matter. Both notations still seem to work the same way.

Offline

Board footer

Powered by FluxBB