You are not logged in.

#1 2016-02-28 03:01:31

printesoi
Member
Registered: 2011-07-17
Posts: 12

[Solved] Cryptsetup: cannot boot from encrypted root partition

I recently reinstalled Arch, and I installed two kernels: the kernel from 'linux' package and the one from the 'linux-lts' package (because I use Catalyst, which is not compatible with 4.4 kernels).

The root partition is a Luks encrypted partition with the settings:

Cipher name:    serpent
Cipher mode:    xts-plain64
Hash spec:      sha512
MK bits:        512

Only when boot the lts kernel boot, after entering the pass-phrase for the device I get the error:

Failed to setup dm-crypt key mapping for device /dev/SSD/root
Check that kernel supports serpent-xts-plain64 cipher (check syslog for more info).

I checked that the lts kernel has enabled serpend, dm-crypt, sha512.

I checked that I have encrypt and lvm2 in HOOKS in /etc/mkinitcpio.conf:

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

I tried to add dm_crypt xts serpent_generic serpent_sse2_x86_64 to MODULES but still not working.

Why is this happening only on the lts kernel?

Last edited by printesoi (2016-02-28 06:02:41)

Offline

#2 2016-02-28 03:58:04

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [Solved] Cryptsetup: cannot boot from encrypted root partition


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2016-02-28 04:07:04

printesoi
Member
Registered: 2011-07-17
Posts: 12

Re: [Solved] Cryptsetup: cannot boot from encrypted root partition

@jasonwryan, thank you!

Offline

#4 2016-02-28 04:23:04

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [Solved] Cryptsetup: cannot boot from encrypted root partition

No problem. Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB