Skip to content

Migrating full disk encryption to LUKS 2.0.0

Since the release of cryptsetup 2.0 which supports LUKS 2.0.0 (http://www.saout.de/pipermail/dm-crypt/2017-December/005771.html) I try to migrate my full system encrypted setup (including /boot but excepting efi partition) to LUKS 2.0.0 by using cryptsetup convert.

I am using grub as bootloader and with LUKS 1 everything works perfect but after converting my partitions to LUKS 2 systemd is unable to mount my root/swap partitions while boot.

Is it possible that grub/systemd does not support LUKS 2 yet or does anybody have similiar issues?

4 points40 comments
Open on Reddit
About this post
Posted
Archived
Score
4 · 100% up
Kind
Text
ID
7jjdfd

Author

42
posts
329
comments
0
media
View profile

6 comments

Other question: How does your encrypted setup looks like? Do you use /etc/crypttab.initramfs or just /etc/crypttab? How does you grub config looks like and which are you kernel parameters?

1 points

Is this social engineering ? :D

cmdline

initrd=\initramfs-linux.img cryptdevice=UUID=************:cryptroot:allow-discards root=/dev/mapper/cryptroot rd.luks.options=discard quiet rw

/etc/crypttab

crypthome UUID=************ /etc/crypttab.key discard

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.