From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jack Hill Subject: Re: grub.cfg does not have luks module for encrypted root Date: Fri, 1 Feb 2019 10:29:15 -0500 (EST) Message-ID: References: <8736p7hahq.fsf@dismail.de> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII Return-path: Received: from eggs.gnu.org ([209.51.188.92]:49736) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gpako-0004s6-KW for help-guix@gnu.org; Fri, 01 Feb 2019 10:29:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gpakn-00020x-QV for help-guix@gnu.org; Fri, 01 Feb 2019 10:29:18 -0500 Received: from minsky.hcoop.net ([104.248.1.95]:32960) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gpakn-00020X-NQ for help-guix@gnu.org; Fri, 01 Feb 2019 10:29:17 -0500 In-Reply-To: <8736p7hahq.fsf@dismail.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Joshua Branson Cc: help-guix@gnu.org On Fri, 1 Feb 2019, Joshua Branson wrote: > Jack Hill writes: > >> Ahoy, >> >> I'm using the attached config.scm for a host with an encrypted gpt >> root partition while booking with bios-grub. It produces the attached >> grub.cfg, which lacks the luks module, thus grub cannot find the >> kernel. >> >> If I enter the grub command line and manually insmod luks and >> cryptomount, I can then boot correction. > > Out of curiosity how do you boot GuixSD on the grub command line? > > The only way I know how to do it is: > > set root=(hd0,1) ; wherever your root partition is > linux /gnu/path/to/vmlinuz-linux-libre root=/dev/sda1 > initrd /gnu/path/to/initramfs-linux-libre.img > boot > > In arch linux, I know where those paths are: /boot, but it GuixSD those > paths are usually buried in /gnu/some/crazy/path... Once I ran 'insmod luks' and 'crytomount (hd0,gpt2)', the filesystem containing the store became available to Grub. I then ran 'configfile (hd0,gpt1)/boot/grub/grub.cfg' to have Grub reprocess the config file that Guix wrote for it. Since the store was now available, Grub was able to load its theme, kernel, and initramfs. Sorry for admitting that step in my summary. Best, Jack