You are not logged in.

#1 2015-10-20 17:39:53

nebie3000
Member
Registered: 2015-10-12
Posts: 4

[solved] Encrypted Root not decrypted automatically by systemd-boot

Hi,
I'm trying to set up a fully encrypted system.
At the moment the system boots and runs fine, but systemd-boot requiers me to decrypt the partition manually in the bootloader comand line every time I start the laptop. (cryptsetup open /dev/sda2 storage)

My harddrive looks like this:

lsblk -f
--------------------------------------------------------------------------------------------
NAME               FSTYPE   LABEL UUID                                   MOUNTPOINT
sda                                                                      
|-sda1             vfat           8251-7929                              /boot
`-sda2             crypto_L       949769a5-dc53-49a8-bf28-1c13efd7bc3e   
  `-storage        LVM2_mem       Y9028C-19vG-jJIr-wUlp-vozl-lRky-g3GpR6 
    |-storage-swap swap           8c79c7e9-a350-439c-bb42-124042c7ffac   [SWAP]
    `-storage-root ext4           3f72b323-f397-44b7-ba9b-c305e617cb29   /


My /etc/mkinitcpio.conf:

MODULES=""
BINARIES=""
FILES=""
HOOKS="consolefont base udev autodetect modconf block encrypt lvm2 filesystems keyms keyboard fsck"

My /boot/loader/entries/arch.conf:

title   Arch Linux
linux   /vmlinuz-linux
initrd  /initramfs-linux.img
options cryptsetup=UUID=949769a5-dc53-49a8-bf28-1c13efd7bc3e:storage root=/dev/mapper/storage-root quiet rw

My /boot/loader/loader.conf

#timeout 3
default arch

I don't think it's the mkinitcpio.conf since cryptsetup is available in the bootloader console.
I'm out of ideas, any hints?

Last edited by nebie3000 (2015-10-21 14:34:39)

Offline

#2 2015-10-21 10:03:20

Aliverix
Member
Registered: 2014-11-05
Posts: 12

Re: [solved] Encrypted Root not decrypted automatically by systemd-boot

I think that the option you have to use as a kernel parameter is "cryptdevice" and not "cryptsetup", check in the wiki page.

Offline

#3 2015-10-21 14:34:58

nebie3000
Member
Registered: 2015-10-12
Posts: 4

Re: [solved] Encrypted Root not decrypted automatically by systemd-boot

Thank You!  ioi

Offline

Board footer

Powered by FluxBB