You are not logged in.

#1 2016-11-15 22:10:37

Syntaxeus
Member
Registered: 2008-10-04
Posts: 24

Can't use Terminus console font before root device is decrypted

Hi guys!

I've installed the terminus-font AUR package to inscreese the size of the console font.
This is my /etc/vconsole.conf file

KEYMAP=sv-latin1
FONT=ter-v32n

and these are my /etc/mkinitcpio.conf HOOKS

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

I'm using an encrypted device on which I store my root file system (including the path to the Terminus font,  /usr/share/kdb/consolesfonts).

What happens is that the Terminus font doesn't get set until I've decrypted my device, which make me think that the system is trying to read the font
from /usr/share/kdb/consolesfonts before it's accessible.

Is this how it works, or will mkinitcpio embed the Terminus font in the initramfs image upon image creation?
If it do access it by it's path, is it possible to refer to another (unencrypted) path in vconsole.conf?

Last edited by Syntaxeus (2016-11-15 22:15:25)

Offline

#2 2016-11-15 22:40:53

blitz
Banned
Registered: 2014-06-14
Posts: 32

Re: Can't use Terminus console font before root device is decrypted

Syntaxeus wrote:

Hi guys!
...
Is this how it works, or will mkinitcpio embed the Terminus font in the initramfs image upon image creation?

Using plain boot /dev/sda1 and encrypted root /dev/sda2 devices. Terminus font is available immediately on boot.

% cat /etc/vconsole.conf 
FONT=Lat2-Terminus16
% bsdtar -tf /boot/initramfs-linux.img | grep Term
usr/share/kbd/consolefonts/Lat2-Terminus16.psfu

Offline

#3 2016-11-16 10:05:04

Syntaxeus
Member
Registered: 2008-10-04
Posts: 24

Re: Can't use Terminus console font before root device is decrypted

% bsdtar -tf /boot/initramfs-linux.img | grep term

gives me nothing, so obviosly the font is not included in my initramfs when I create it using

# mkinitcpio -p linux

Do need to do anything more than adding the consolefont hook to /etc/mkinitcpio.conf?

Last edited by Syntaxeus (2016-11-16 10:06:22)

Offline

#4 2016-11-16 10:25:06

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: Can't use Terminus console font before root device is decrypted

Try adding the font to the FILES section of mkinitcpio.conf and rebuilding.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#5 2016-11-16 11:55:32

Syntaxeus
Member
Registered: 2008-10-04
Posts: 24

Re: Can't use Terminus console font before root device is decrypted

Good suggestion.

I tried that and now it's getting included in the image at least, but it still doesn't get applied to the systemd-boot and luks prompt.

The luks prompt still displays

setfont bad input file size

before the password input

Last edited by Syntaxeus (2016-11-16 11:56:25)

Offline

#6 2016-11-16 18:54:22

blitz
Banned
Registered: 2014-06-14
Posts: 32

Re: Can't use Terminus console font before root device is decrypted

Excerpt from working /etc/mkinitcpio.conf

FILES=""
...
#HOOKS="base udev autodetect modconf block filesystems keyboard consolefont fsck shutdown"
HOOKS="base systemd autodetect modconf block filesystems keyboard sd-vconsole fsck sd-shutdown"

Take note empty FILES.

Offline

Board footer

Powered by FluxBB