LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Arch (https://www.linuxquestions.org/questions/arch-29/)
-   -   Grub & Encryption Installation Problems (https://www.linuxquestions.org/questions/arch-29/grub-and-encryption-installation-problems-4175726895/)

sh_to 07-13-2023 06:19 AM

Grub & Encryption Installation Problems
 
Hi

Yesterday I tried my first Arch installation on an XPS 13 9320.
I followed the installation instructions with one exception: encrypting /root and /home. My goal was to enter the password once to decrypt /root and then automatically decrypt /home using a keyfile on /root.

That's why I configured mkinitcpio.conf with the following hooks

HOOKS=(base udev autodetect modconf block encrypt lvm2 filesystems keyboard fsck)


How I tried to configure Grub:

GRUB_CMDLINE_LINUX_DEFAULT="quiet kbd_layout=de"
GRUB_INIT_TUNE="menu --timeout=3"

My problems with Grub(?)..:

1. Grub doesn't accept the keyboard configuration I want to use (de-latin1 or kbd_layout=de).
2. I have only one attempt to enter the password
3. The biggest problem: it won't accept my password even though I'm pretty sure I typed it correctly, even with US keymaps.

A bit more explanation on 3:

If I use the Arch iso and mount the encrypted partition: no problem. Even if I don't use the de-latin1 keymap. I think there is another reason why this fails. I've tried many times and I'm sure I entered the right password, even with a US keymap.

Do you have any idea how to solve this?

Thanks in advance!
Simon

PS I also posted this question on the Arch forums yesterday, but have not received an answer yet.

traene 07-22-2023 01:42 AM

https://wiki.archlinux.org/title/Dm-..._entire_system) shows many different examples. Please note that HOOKS entry in /etc/mkinitrd.conf is different almost every time and the ordering is import.

For the keyboard type detection, your issue may be as easy as adding 'keyboard' 'keymap' before the 'encrypt' hook.

Please check what kind of setup you have, adapt the settings accordingly and rebuild the mkinitcpio.


All times are GMT -5. The time now is 10:39 AM.