From mboxrd@z Thu Jan 1 00:00:00 1970 From: Miguel Arruga Vivas Subject: bug#37851: Grub installation only checks for encrypted /boot folder Date: Mon, 21 Oct 2019 14:47:58 +0200 Message-ID: <20191021144758.3d8cfe95@gmail.com> References: <20191021130709.21d6ac20@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_/h3seKrLtpx/8H6rIaw5TuPN" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:59847) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iMX7P-0007KS-G7 for bug-guix@gnu.org; Mon, 21 Oct 2019 08:49:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iMX7O-0004wR-6O for bug-guix@gnu.org; Mon, 21 Oct 2019 08:49:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:47089) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iMX7O-0004wL-29 for bug-guix@gnu.org; Mon, 21 Oct 2019 08:49:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iMX7N-0004p0-Un for bug-guix@gnu.org; Mon, 21 Oct 2019 08:49:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <20191021130709.21d6ac20@gmail.com> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 37851@debbugs.gnu.org --MP_/h3seKrLtpx/8H6rIaw5TuPN Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi again, Attached can be found a workaround to mount all encrypted partitions. There is no way to tell the devices to mount without changing boot-parameters, where I'd add another field with the needed mapped devices (a traversal onto the mapped-device dependency tree of /gnu/store). Do you think this is a good idea? At least I think it's the best way to encode the dependencies into the grub.cfg file, even though the typical graph will contain 0 or 1 nodes. Ideas? Best regards, Miguel --MP_/h3seKrLtpx/8H6rIaw5TuPN Content-Type: text/x-patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=0001-system-Mount-luks-devices-on-boot.patch >From 9b50e2d8eb8b744595a54a9543993eb4e3813742 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20=C3=81ngel=20Arruga=20Vivas?= Date: Mon, 21 Oct 2019 14:35:02 +0200 Subject: [PATCH] system: Mount luks devices on boot. * gnu/bootloader/grub.scm (grub-configuration-file)[builder]: Mount all encrypted partitions. --- gnu/bootloader/grub.scm | 1 + 1 file changed, 1 insertion(+) diff --git a/gnu/bootloader/grub.scm b/gnu/bootloader/grub.scm index d984d5f5e3..b29477ec71 100644 --- a/gnu/bootloader/grub.scm +++ b/gnu/bootloader/grub.scm @@ -369,6 +369,7 @@ keymap ~a~%" keymap))))) (format port "# This file was generated from your Guix configuration. Any changes # will be lost upon reconfiguration. +cryptomount -a ") #$sugar #$keyboard-layout-config -- 2.23.0 --MP_/h3seKrLtpx/8H6rIaw5TuPN--