From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1OEN6T-00032F-WE for garchives@archives.gentoo.org; Tue, 18 May 2010 13:45:02 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1F856E06E8; Tue, 18 May 2010 13:44:26 +0000 (UTC) Received: from zion.lichtfels.com (zion.lichtfels.com [88.198.33.170]) by pigeon.gentoo.org (Postfix) with ESMTP id E5017E06E8 for ; Tue, 18 May 2010 13:44:25 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by zion.lichtfels.com (Postfix) with ESMTP id D049518400A; Tue, 18 May 2010 15:44:24 +0200 (CEST) Received: from zion.lichtfels.com ([127.0.0.1]) by localhost (zion [127.0.0.1]) (amavisd-maia, port 10024) with LMTP id 22736-07; Tue, 18 May 2010 15:44:22 +0200 (CEST) Received: from [172.32.99.12] (mail.oops.co.at [213.129.238.225]) by zion.lichtfels.com (Postfix) with ESMTPA id 60667184006; Tue, 18 May 2010 15:44:21 +0200 (CEST) Message-ID: <4BF299B4.2040306@xunil.at> Date: Tue, 18 May 2010 15:44:20 +0200 From: "Stefan G. Weichinger" Organization: oops! User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100410 Lightning/1.0b2pre Thunderbird/3.0.4 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: Jan Engelhardt CC: gentoo-user@lists.gentoo.org, Daniel Troeder , walt , Florian Philipp , Jason Dusek , Till Maas , hanno@gentoo.org Subject: [gentoo-user] Re: Kernel upgrade and now LUKS failure References: <4BF108F3.1080304@xunil.at> In-Reply-To: X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-maia at lichtfels.com X-Archives-Salt: bf2e0d66-f9b2-4ed8-b7c2-d4b86106cd20 X-Archives-Hash: b5582a94c829a7fe4b35a60184aece1c Am 18.05.2010 15:05, schrieb Jan Engelhardt: > > On Monday 2010-05-17 11:14, Stefan G. Weichinger wrote: >> Am 16.05.2010 14:36, schrieb Jan Engelhardt: >>> [Replying to >>> http://thread.gmane.org/gmane.linux.gentoo.user/229533/focus=229542 >>> ] >>> >>> Second, it's using echo without the -n parameter, thus implicitly >>> inserting a newline into the key -- which is the cause for yoru >>> observed mounting problems. >>> >>> Third, because you are passing the key via stdin into cryptsetup, it >>> only uses the first line of whatever you pipe into it; whereas >>> pam_mount uses the entire keyfile as it is supposed to be. >>> [...] >> Jan, thanks for your suggestions. >> >> I created a new LUKS-volume and tried to avoid all the mentioned >> pitfalls (I used "echo -n", avoided stdin etc.), but this didn't help here. > > To be sure, use > > openssl -d ... | hexdump -C > > to detect newlines in the key. The shell has far too many occasions > where \n gets stripped or added. Thanks for the hint. Could you please show me an example how it should look like and what to look for? I get several lines of output, that seems bad ... ? Maybe I didn't get all the steps right, could be. Do you know any howto where it is done "the right way"? Thanks, Stefan