Gentoo Archives: gentoo-user

From: Jan Engelhardt <jengelh@×××××××.de>
To: "Stefan G. Weichinger" <lists@×××××.at>
Cc: gentoo-user@l.g.o, Daniel Troeder <daniel@×××××××××.com>, walt <w41ter@×××××.com>, Florian Philipp <lists@××××××××××××××××××.net>, Jason Dusek <jason.dusek@×××××.com>, Till Maas <opensource@××××.name>, hanno@g.o
Subject: [gentoo-user] Re: Kernel upgrade and now LUKS failure
Date: Tue, 18 May 2010 13:06:26
Message-Id: alpine.LSU.2.01.1005181504030.28404@obet.zrqbmnf.qr
In Reply to: [gentoo-user] Re: Kernel upgrade and now LUKS failure by "Stefan G. Weichinger"
1 On Monday 2010-05-17 11:14, Stefan G. Weichinger wrote:
2 >Am 16.05.2010 14:36, schrieb Jan Engelhardt:
3 >> [Replying to
4 >> http://thread.gmane.org/gmane.linux.gentoo.user/229533/focus=229542
5 >> ]
6 >>
7 >> Second, it's using echo without the -n parameter, thus implicitly
8 >> inserting a newline into the key -- which is the cause for yoru
9 >> observed mounting problems.
10 >>
11 >> Third, because you are passing the key via stdin into cryptsetup, it
12 >> only uses the first line of whatever you pipe into it; whereas
13 >> pam_mount uses the entire keyfile as it is supposed to be.
14 >>[...]
15 >Jan, thanks for your suggestions.
16 >
17 >I created a new LUKS-volume and tried to avoid all the mentioned
18 >pitfalls (I used "echo -n", avoided stdin etc.), but this didn't help here.
19
20 To be sure, use
21
22 openssl -d ... | hexdump -C
23
24 to detect newlines in the key. The shell has far too many occasions
25 where \n gets stripped or added.

Replies

Subject Author
[gentoo-user] Re: Kernel upgrade and now LUKS failure "Stefan G. Weichinger" <lists@×××××.at>