From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH] DISCUSSION: Jookia's Libreboot+LUKS+LVM FDE patch. Date: Thu, 10 Mar 2016 17:10:09 +0100 Message-ID: <87r3fitiu6.fsf@gnu.org> References: <56e0c4cf.08d0190a.6a127.0d35@mx.google.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49339) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ae3AI-0000gP-Cu for guix-devel@gnu.org; Thu, 10 Mar 2016 11:10:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ae3AC-0000lD-5P for guix-devel@gnu.org; Thu, 10 Mar 2016 11:10:18 -0500 In-Reply-To: <56e0c4cf.08d0190a.6a127.0d35@mx.google.com> (Jookia's message of "Thu, 10 Mar 2016 11:36:45 +1100") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Jookia <166291@gmail.com> Cc: guix-devel@gnu.org Jookia <166291@gmail.com> skribis: > So I've come up with the following hack commit that effectively > stops any sort of dependency management and adds some new targets > for LVM and LUKS with a keyfile. > > Here's my current setup, take note that order of mapped devices > matter since there's no dependency management: > > (mapped-devices (list (mapped-device > (source "/dev/sda") > (target "hdd") > (type (luks-device-keyfile-mapping > (local-file "/root/keyfile")))) > (mapped-device > (source "/dev/mapper/hdd") > (target "matrix") > (type lvm-device-mapping)))) > > (file-systems (cons (file-system > (device "/dev/mapper/matrix-root") > (title 'device) > (mount-point "/") > (type "ext4")) > %base-file-systems)) > > (swap-devices '("/dev/mapper/matrix-swap")) As you note, and as discussed on IRC, this is not OK because the private key ends up being stored world-readable in the store. :-/ Am I missing the part you wanted to discuss? Thanks, Ludo=E2=80=99. PS: I still intend to look at the patch series you sent ;-), just prioritizing things that relate to 0.9.1.