all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jack Hill <jackhill@jackhill.us>
To: Giovanni Biscuolo <g@xelera.eu>
Cc: help-guix@gnu.org
Subject: Re: grub with encrpted root no longer automatically loads luks
Date: Tue, 25 Jun 2019 23:50:00 -0400 (EDT)	[thread overview]
Message-ID: <alpine.DEB.2.20.1906252344400.17508@marsh.hcoop.net> (raw)
In-Reply-To: <8736k385t4.fsf@roquette.mug.biscuolo.net>

Thanks for you reply.

On Fri, 21 Jun 2019, Giovanni Biscuolo wrote:

> Hello Jack,
>
> I don't have a Guix machine using root on encrypted LUKS now, but I
> tested this non so long ago and it worked well
>
> Jack Hill <jackhill@jackhill.us> writes:
>
>> I've noticed that recently (unfortunately, I don't know exactly when it
>> started), that grub no longer prompts me to enter my password to unlock my
>> root filesystem.
>
> Are you able to boot to a previous Guix System generation and try to
> find the one that introduced this behaviour?

No, I can't boot into a previous generation, as the problem seems to be 
with grub reading from the store. I have not yet tried reconfiguring with 
an older version of Guix.

> Are you sure you did not reconfigured your device mapping meanwhile?

I am reasonable certain that I have not done this.

>> I notice that at the grub command line, if I enter
>> `cryptomount -a`, I am not prompted for a password, and the root
>> filesystem does not become available. However, if I first run `insmod
>> luks` and then `cryptomount -a`, I am prompted for my password, and the
>> root filesystem become available and I can boot normally.
>
> I imagine you are entering the grub CLI because you get some error:
> what's the error please?

no such file /gnu/store/…/bzImage.
error: try loading kernel first

That's not the exact error, but pretty close.

> AFAIU (mapped-device ..(target "name") (type luks-device-mapping)))
> creates the mapped device /dev/mapper/name; file-system should be:
>
> --8<---------------cut here---------------start------------->8---
>
>  		(file-system
>  		 (device "/dev/mapper/alperton_root")
>  		 (mount-point "/")
>  		 (type "ext4")
>  		 (dependencies mapped-devices))
>  		%base-file-systems))
>
> --8<---------------cut here---------------end--------------->8---

Making the this change unfortunately did not help. Once I get the system 
booted, the root file system is mounted correctly with both configs.

> Did your configuration worked in a prior Guix System generation?

Yes, but I haven't yet had a chance to try it again with an older version 
of Guix.

Best,
Jack

  reply	other threads:[~2019-06-26  3:50 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-21  4:21 grub with encrpted root no longer automatically loads luks Jack Hill
2019-06-21 12:46 ` Giovanni Biscuolo
2019-06-26  3:50   ` Jack Hill [this message]
2019-06-29  3:21 ` Mark H Weaver
2019-07-13  6:03   ` Jack Hill

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.DEB.2.20.1906252344400.17508@marsh.hcoop.net \
    --to=jackhill@jackhill.us \
    --cc=g@xelera.eu \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.