anatol / booster

Fast and secure initramfs generator
MIT License
505 stars 45 forks source link

```vconsole: true``` causes systems with encrypted root to freeze. #256

Open CosmicFusion opened 9 months ago

CosmicFusion commented 9 months ago

OS: PikaOS 3/Ubuntu 23.10 PC: intel iris laptop/nvidia pc/qemu VM Kernel: 6.6.6/6.5.5/6.5.0

Expected Behavior: having vconsole: true in the booster configuration would cause an un-encrypted system to boot right up.

having vconsole: true in the booster configuration would cause an encrypted system to show unlock dialog with keymap from vconsole.

Current Behavior having vconsole: true in the booster configuration would cause an un-encrypted system to boot right up.

having vconsole: false in the booster configuration would cause an un-encrypted system to boot right up.

having vconsole: false in the booster configuration would cause an encrypted system to show unlock dialog with US keymap.

having vconsole: true in the booster configuration would cause an encrypted system to freeze at console font loading never asking for luks password.

no font set in vconsole: Screenshot from 2024-02-18 17-53-17

terminus font: Screenshot from 2024-02-18 00-45-39

vga font: Screenshot from 2024-02-18 00-48-50

my /etc/booster.yaml

vconsole: true
extra_files: busybox
enable_lvm: true
modules_force_load: usbhid

my /etc/vconsole.conf

XKBMODEL="pc105"
XKBLAYOUT="us"
XKBVARIANT=""
XKBOPTIONS=""
BACKSPACE="guess"
KEYMAP=us
CosmicFusion commented 9 months ago

Solved but not gonna Close

The issue turned out to be caused by faulty locale generation on my end.

Though it shouldn't be closed because it should show error message at runtime with debug on, or error at image regen time.

We only got it fixed by accident.