You are not logged in.

#1 2014-07-21 03:03:51

KairiTech
Member
From: Toronto, Canada
Registered: 2011-06-04
Posts: 275

[Solved] systemd-cryptsetup with remote header

Synopsys: Remote headers are not supported by systemd-cryptsetup.

I was able to get my root partition working with a remote header by adding the '--header=' parameter to the encrypt hook but my searches can only find reference to request for the addition of support to systemd-cryptsetup from about a year ago. I'd also like to have remote headers for my data partitions.

This is the entry in /etc/crypttab:

myRecordings /dev/sdc1 /opt/lK/cK.splashK1280x1024.jpg luks --header=/boot/myRecordings-header.img

...and this is the error I see in the systemd journal:

systemd-cryptsetup[314]: Encountered unknown /etc/crypttab option '--header=/boot/myRecordings-header.img', ignoring.

How do I confirm that support for the '--header=' parameter has been added (or not) to systemd-cryptsetup?

Last edited by KairiTech (2014-07-21 13:33:13)

Offline

#2 2014-07-21 12:50:22

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [Solved] systemd-cryptsetup with remote header

KairiTech wrote:

How do I confirm that support for the '--header=' parameter has been added (or not) to systemd-cryptsetup?

Read the source.

Offline

#3 2014-07-21 13:31:47

KairiTech
Member
From: Toronto, Canada
Registered: 2011-06-04
Posts: 275

Re: [Solved] systemd-cryptsetup with remote header

Nope! There's no mention of the '--header=' parameter in the source so I created a script to manually mount my data partition using a remote header and keyfile until such time that remote header support is added to systemd-cryptsetup.

Last edited by KairiTech (2014-07-21 15:32:20)

Offline

#4 2014-07-21 16:13:34

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [Solved] systemd-cryptsetup with remote header

I doubt you'll ever see "--header" in the source. You might see "header", but that doesn't exist (yet?) either.

Offline

#5 2015-02-17 22:50:06

teateawhy
Member
From: GER
Registered: 2012-03-05
Posts: 1,138
Website

Re: [Solved] systemd-cryptsetup with remote header

Looks like this was added to systemd recently:
You can find "header" in the source now.
http://cgit.freedesktop.org/systemd/sys … 7376e83528
https://bugs.freedesktop.org/show_bug.cgi?id=66396

I upgraded to testing to try this out and it works. I am using the remote header option and lvm on luks.
No more hacks are required, it is all implemented in systemd now.
EDIT:
This is already mentioned in the wiki here:
https://wiki.archlinux.org/index.php/Dm … _initramfs

Last edited by teateawhy (2015-02-18 00:18:57)

Offline

Board footer

Powered by FluxBB