unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Mark H Weaver <mhw@netris.org>
To: Jack Hill <jackhill@jackhill.us>
Cc: help-guix@gnu.org
Subject: Re: grub with encrpted root no longer automatically loads luks
Date: Fri, 28 Jun 2019 23:21:54 -0400	[thread overview]
Message-ID: <87h889kre5.fsf@netris.org> (raw)
In-Reply-To: <alpine.DEB.2.20.1906202357510.17508@marsh.hcoop.net> (Jack Hill's message of "Fri, 21 Jun 2019 00:21:55 -0400 (EDT)")

Hi Jack,

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.

FWIW, I also use an encrypted root filesystem on my Guix system, and
I've updated Guix since you reported the problem, and it works for me.
GRUB continues to prompt me for the LUKS passphase at boot.

One notable difference between our system configurations is that you
have a separate /boot filesystem, and I don't.  All I have is a single
encrypted root filesystem, plus %base-file-systems.  I wonder if this
might be the relevant difference?

     Regards,
       Mark

> 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.
>
> Therefore, it seem like grub is not auto-loading the luks module for
> some reason. Why might this be the case? What needs to be changed so
> that luks is auto loaded?
>
> Best,
> Jack
>
> my config.scm:
>
> ;; This is an operating system configuration template
> ;; for a "desktop" setup with GNOME and Xfce where the
> ;; root partition is encrypted with LUKS.
>
> (use-modules (gnu) (gnu system nss) (gnu services xorg)
> 	     (gnu packages linux))
> (use-service-modules desktop)
> (use-package-modules certs gnome scanner security-token)
>
> (operating-system
>  (host-name "alperton")
>  (timezone "America/New_York")
>  (locale "en_US.utf8")
>
>  (bootloader (bootloader-configuration
> 	      (bootloader grub-bootloader)
> 	      (target "/dev/sda")))
>
>  ;; Specify a mapped device for the encrypted root partition.
>  ;; The UUID is that returned by 'cryptsetup luksUUID'.
>  (mapped-devices
>   (list (mapped-device
> 	 (source (uuid "f7776767-70c9-44e3-9973-c1334d301348"))
> 	 (target "alperton_root")
> 	 (type luks-device-mapping))))
>
>  (file-systems (cons*
> 		(file-system
> 		 (device (file-system-label "boot"))
> 		 (mount-point "/boot")
> 		 (type "ext4"))
> 		(file-system
> 		 (device (file-system-label "alperton_root"))
> 		 (mount-point "/")
> 		 (type "ext4")
> 		 (dependencies mapped-devices))
> 		%base-file-systems))
>
>  (swap-devices (list "/root/swap"))
>
>  (users (cons (user-account
> 	       (name "jackhill")
> 	       (comment "Jack Hill")
> 	       (group "users")
> 	       (supplementary-groups '("wheel" "netdev"
> 				       "audio" "lp" "video"))
> 	       (home-directory "/home/jackhill"))
> 	      %base-user-accounts))
>
>  ;; This is where we specify system-wide packages.
>  (packages (cons* nss-certs         ;for HTTPS access
> 		  fuse-exfat
> 		  gvfs              ;for user mounts
> 		  %base-packages))
>
>  ;; Add GNOME and/or Xfce---we can choose at the log-in
>  ;; screen with F1.  Use the "desktop" services, which
>  ;; include the X11 log-in service, networking with
>  ;; NetworkManager, and more.
>  (services (cons* (service gnome-desktop-service-type)
> 		  (bluetooth-service)
> 		  (simple-service 'custom-udev-rules udev-service-type (list sane-backends libu2f-host))
> 		  %desktop-services))
>
>  ;; Allow resolution of '.local' host names with mDNS.
>  (name-service-switch %mdns-host-lookup-nss))

  parent reply	other threads:[~2019-06-29  3:22 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
2019-06-29  3:21 ` Mark H Weaver [this message]
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

  List information: https://guix.gnu.org/

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

  git send-email \
    --in-reply-to=87h889kre5.fsf@netris.org \
    --to=mhw@netris.org \
    --cc=help-guix@gnu.org \
    --cc=jackhill@jackhill.us \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).