all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* system hangs at boot - LUKS /home/ problem(?)
@ 2024-03-26 15:15 Fulbert
  2024-03-26 17:58 ` Fulbert
  0 siblings, 1 reply; 10+ messages in thread
From: Fulbert @ 2024-03-26 15:15 UTC (permalink / raw)
  To: help-guix

Hello! Seeking some help/suggestions to solve a problem preventing
my system to boot up, which was working properly up to guix 9b84b36
(21 mar 2024) (note: I confess that my system is not totally pure).

Starting with guix d5f857a (22 mar 2024) up to my latest guix pull
with 1415ea7, the **system hangs during boot**, and it does before
anything is written to /var/log/messages. So, using a video capture
of the screen at boot, I was abble to catch :

#+begin_src boot
shepherd[1]: Exception caught while while starting device-mapping-luks-homes: (unbound-variable #f "Unbound variable: "S" (bytevector?) #f)
#+end_src

… which appears to be the culprit ?!

follows a long list of "shepherd[1]: Service XXX depends on YYY" and
then
#+begin_src boot
shepherd[1]: The following services could not be started in the background: <follows the list of all services the system should start>
#+end_src

From there : a blinking cursor and the only way out I found is
CTRL-ALT-DEL, which triggers shepherd to stop some services. After
that I have to shutdown using hardware button.

My system and its config.scm have not changed and I see nothing
relevant, related to LUKS/dm-crypt, in `guix pull -l`.

My LUKS is configured like so :

  (mapped-devices
    (list
      (mapped-device
        (source (uuid "<the uuid>"))
        (target "luks-homes")
        (type luks-device-mapping))))

  (file-systems
    (append
      (list
        […]
        (file-system (mount-point "/home")
                     (device (file-system-label "luks-homes"))
                     (type "ext4")
                     (dependencies mapped-devices))
        […]

Any help would be appreciated.


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: system hangs at boot - LUKS /home/ problem(?)
  2024-03-26 15:15 system hangs at boot - LUKS /home/ problem(?) Fulbert
@ 2024-03-26 17:58 ` Fulbert
  2024-03-27  9:39   ` Adrien 'neox' Bourmault
  0 siblings, 1 reply; 10+ messages in thread
From: Fulbert @ 2024-03-26 17:58 UTC (permalink / raw)
  To: help-guix

I forgot to mention : LUKS version 2 with PBKDF: argon2i. I remember reading
that guix supported LUKS2 except for /boot… but I might be wrong. At 
least it
has worked for month on my computer until guix d5f857a (22 mar 2024).

So, new question, do I have to convert to LUKS1 ?

Le 26.03.24 à 16:15, Fulbert a écrit :

> Hello! Seeking some help/suggestions to solve a problem preventing
> my system to boot up, which was working properly up to guix 9b84b36
> (21 mar 2024) (note: I confess that my system is not totally pure).
>
> Starting with guix d5f857a (22 mar 2024) up to my latest guix pull
> with 1415ea7, the **system hangs during boot**, and it does before
> anything is written to /var/log/messages. So, using a video capture
> of the screen at boot, I was abble to catch :
>
> #+begin_src boot
> shepherd[1]: Exception caught while while starting device-mapping-luks-homes: (unbound-variable #f "Unbound variable: "S" (bytevector?) #f)
> #+end_src
>
> … which appears to be the culprit ?!
>
> follows a long list of "shepherd[1]: Service XXX depends on YYY" and
> then
> #+begin_src boot
> shepherd[1]: The following services could not be started in the background: <follows the list of all services the system should start>
> #+end_src
>
>  From there : a blinking cursor and the only way out I found is
> CTRL-ALT-DEL, which triggers shepherd to stop some services. After
> that I have to shutdown using hardware button.
>
> My system and its config.scm have not changed and I see nothing
> relevant, related to LUKS/dm-crypt, in `guix pull -l`.
>
> My LUKS is configured like so :
>
>    (mapped-devices
>      (list
>        (mapped-device
>          (source (uuid "<the uuid>"))
>          (target "luks-homes")
>          (type luks-device-mapping))))
>
>    (file-systems
>      (append
>        (list
>          […]
>          (file-system (mount-point "/home")
>                       (device (file-system-label "luks-homes"))
>                       (type "ext4")
>                       (dependencies mapped-devices))
>          […]
>
> Any help would be appreciated.
>


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: system hangs at boot - LUKS /home/ problem(?)
  2024-03-26 17:58 ` Fulbert
@ 2024-03-27  9:39   ` Adrien 'neox' Bourmault
  2024-03-28 10:37     ` Fulbert
  0 siblings, 1 reply; 10+ messages in thread
From: Adrien 'neox' Bourmault @ 2024-03-27  9:39 UTC (permalink / raw)
  To: Fulbert, help-guix

[-- Attachment #1: Type: text/plain, Size: 3291 bytes --]

Le mardi 26 mars 2024 à 18:58 +0100, Fulbert a écrit :
> I forgot to mention : LUKS version 2 with PBKDF: argon2i. I remember reading
> that guix supported LUKS2 except for /boot… but I might be wrong. At 
> least it
> has worked for month on my computer until guix d5f857a (22 mar 2024).
> 
> So, new question, do I have to convert to LUKS1 ?
> 
> Le 26.03.24 à 16:15, Fulbert a écrit :
> 
> > Hello! Seeking some help/suggestions to solve a problem preventing
> > my system to boot up, which was working properly up to guix 9b84b36
> > (21 mar 2024) (note: I confess that my system is not totally pure).
> > 
> > Starting with guix d5f857a (22 mar 2024) up to my latest guix pull
> > with 1415ea7, the **system hangs during boot**, and it does before
> > anything is written to /var/log/messages. So, using a video capture
> > of the screen at boot, I was abble to catch :
> > 
> > #+begin_src boot
> > shepherd[1]: Exception caught while while starting device-mapping-luks-homes:
> > (unbound-variable #f "Unbound variable: "S" (bytevector?) #f)
> > #+end_src
> > 
> > … which appears to be the culprit ?!
> > 
> > follows a long list of "shepherd[1]: Service XXX depends on YYY" and
> > then
> > #+begin_src boot
> > shepherd[1]: The following services could not be started in the background:
> > <follows the list of all services the system should start>
> > #+end_src
> > 
> >  From there : a blinking cursor and the only way out I found is
> > CTRL-ALT-DEL, which triggers shepherd to stop some services. After
> > that I have to shutdown using hardware button.
> > 
> > My system and its config.scm have not changed and I see nothing
> > relevant, related to LUKS/dm-crypt, in `guix pull -l`.
> > 
> > My LUKS is configured like so :
> > 
> >    (mapped-devices
> >      (list
> >        (mapped-device
> >          (source (uuid "<the uuid>"))
> >          (target "luks-homes")
> >          (type luks-device-mapping))))
> > 
> >    (file-systems
> >      (append
> >        (list
> >          […]
> >          (file-system (mount-point "/home")
> >                       (device (file-system-label "luks-homes"))
> >                       (type "ext4")
> >                       (dependencies mapped-devices))
> >          […]
> > 
> > Any help would be appreciated.
> > 
> 

Hi everyone, the exact same thing happens to me too since d5f857a.

I'm using a pure GNU Guix installation with my /home as a LUKS partition.

My fs configuration : 

  (file-systems (cons* 
    (file-system
      (mount-point "/home")
      (device "/dev/mapper/crypthome")
      (type "ext4")
      (dependencies mapped-devices))
    (file-system
      (mount-point "/boot/efi")
      (device (uuid "A012-A17A" 'fat32))
      (type "vfat"))
    (file-system
      (mount-point "/")
      (device (uuid "dfaec018-b99b-4d34-a206-eec25b833c45" 'ext4))
      (type "ext4")) %base-file-systems)))

Happy hacking!
-- 
Adrien Bourmault
Maintainer, GNU Boot project
Associate member, Free Software Foundation
GPG : 393D4CC68136F39799DA75F295F65F55F682A17A



[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: system hangs at boot - LUKS /home/ problem(?)
  2024-03-27  9:39   ` Adrien 'neox' Bourmault
@ 2024-03-28 10:37     ` Fulbert
  2024-03-28 11:34       ` Fulbert
  0 siblings, 1 reply; 10+ messages in thread
From: Fulbert @ 2024-03-28 10:37 UTC (permalink / raw)
  To: help-guix

Le Wed, Mar 27, 2024 at 10:39:36AM +0100, Adrien 'neox' Bourmault a écrit :
> Le mardi 26 mars 2024 à 18:58 +0100, Fulbert a écrit :
> > I forgot to mention : LUKS version 2 with PBKDF: argon2i. I remember reading
> > that guix supported LUKS2 except for /boot… but I might be wrong. At 
> > least it
> > has worked for month on my computer until guix d5f857a (22 mar 2024).
> > 
> > So, new question, do I have to convert to LUKS1 ?
> > 
> > Le 26.03.24 à 16:15, Fulbert a écrit :
> > 
> > > Hello! Seeking some help/suggestions to solve a problem preventing
> > > my system to boot up, which was working properly up to guix 9b84b36
> > > (21 mar 2024) (note: I confess that my system is not totally pure).
> > > 
> > > Starting with guix d5f857a (22 mar 2024) up to my latest guix pull
> > > with 1415ea7, the **system hangs during boot**, and it does before
> > > anything is written to /var/log/messages. So, using a video capture
> > > of the screen at boot, I was abble to catch :
> > > 
> > > #+begin_src boot
> > > shepherd[1]: Exception caught while while starting device-mapping-luks-homes:
> > > (unbound-variable #f "Unbound variable: "S" (bytevector?) #f)
> > > #+end_src
> > > 
> > > … which appears to be the culprit ?!
> > > 
> > > follows a long list of "shepherd[1]: Service XXX depends on YYY" and
> > > then
> > > #+begin_src boot
> > > shepherd[1]: The following services could not be started in the background:
> > > <follows the list of all services the system should start>
> > > #+end_src
> > > 
> > >  From there : a blinking cursor and the only way out I found is
> > > CTRL-ALT-DEL, which triggers shepherd to stop some services. After
> > > that I have to shutdown using hardware button.
> > > 
> > > My system and its config.scm have not changed and I see nothing
> > > relevant, related to LUKS/dm-crypt, in `guix pull -l`.
> > > 
> > > My LUKS is configured like so :
> > > 
> > >    (mapped-devices
> > >      (list
> > >        (mapped-device
> > >          (source (uuid "<the uuid>"))
> > >          (target "luks-homes")
> > >          (type luks-device-mapping))))
> > > 
> > >    (file-systems
> > >      (append
> > >        (list
> > >          […]
> > >          (file-system (mount-point "/home")
> > >                       (device (file-system-label "luks-homes"))
> > >                       (type "ext4")
> > >                       (dependencies mapped-devices))
> > >          […]
> > > 
> > > Any help would be appreciated.
> > > 
> > 
> 
> Hi everyone, the exact same thing happens to me too since d5f857a.
> 
> I'm using a pure GNU Guix installation with my /home as a LUKS partition.
> 
> My fs configuration : 
> 
>   (file-systems (cons* 
>     (file-system
>       (mount-point "/home")
>       (device "/dev/mapper/crypthome")
>       (type "ext4")
>       (dependencies mapped-devices))
>     (file-system
>       (mount-point "/boot/efi")
>       (device (uuid "A012-A17A" 'fat32))
>       (type "vfat"))
>     (file-system
>       (mount-point "/")
>       (device (uuid "dfaec018-b99b-4d34-a206-eec25b833c45" 'ext4))
>       (type "ext4")) %base-file-systems)))
> 
> Happy hacking!
> -- 
> Adrien Bourmault
> Maintainer, GNU Boot project
> Associate member, Free Software Foundation
> GPG : 393D4CC68136F39799DA75F295F65F55F682A17A
> 
> 


Hello Adrien and everyone,

I have tried to transfer my /home data to a brand new LUKS1 partition, (as well
as removing pointers to the old LUKS2 partition in my config.scm, of course) and
the problem remains exactly the same, including those error messages (obtained with
a video capture of the screen at boot, after removing 'quiet' from the kernel
command line in grub) :

#+begin_src boot
shepherd[1]: Starting service device-mapping-luks-homes...
shepherd[1]: Service device-mapping-luks-homes failed to start.
shepherd[1]: Exception caught while starting device-mapping-luks-homes: (unbound-variable #f "Unbound variable: "S" (bytevector?) #f)
#+end_src

Maybe it's worth mentionning that I have tried one configuration of the
'mapped-device' with 'luks-device-mapping' and another one with
'luks-device-mapping-with-options #:keyfile "/…"'. I also tried one
configuration with the 'source' declared in plain "/dev/..." and another 
one declared with the luks '(uuid "…")', just in case.

So, although I have learned in the process that LUKS2 is not yet fully
supported in guix, this problem also prevents booting using a LUKS1 /home
partition… at least in my case… and I am surprised that we are only 2 to report
about this, here.

Transfering the /home data to a clear (unencrypted) partition is my current
workaround to this problem.

Any suggestion still welcome, but I suppose the next step should be to send a
bug report, in due form.


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: system hangs at boot - LUKS /home/ problem(?)
  2024-03-28 10:37     ` Fulbert
@ 2024-03-28 11:34       ` Fulbert
  2024-03-30 15:25         ` Remco van 't Veer
  0 siblings, 1 reply; 10+ messages in thread
From: Fulbert @ 2024-03-28 11:34 UTC (permalink / raw)
  To: help-guix

( https://issues.guix.gnu.org/70051 )




^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: system hangs at boot - LUKS /home/ problem(?)
  2024-03-28 11:34       ` Fulbert
@ 2024-03-30 15:25         ` Remco van 't Veer
  2024-04-02 20:00             ` bug#70051: " Benjamin Slade
  0 siblings, 1 reply; 10+ messages in thread
From: Remco van 't Veer @ 2024-03-30 15:25 UTC (permalink / raw)
  To: Fulbert
  Cc: help-guix, 70051, Adrien 'neox' Bourmault,
	Ludovic Courtès

Hi,

Confirmed on a couple of my installs.  I too have an unencrypted root
and encrypted home filesystems.  The passphrase prompt never appears and
the system seems to be waiting for something or is halted.

I've git bisected it down to:

  commit 6f9d844d2ece7b369d17bbe678978462425f869c (HEAD)
  Author: Ludovic Courtès <ludo@gnu.org>
  Date:   Wed Mar 20 18:48:38 2024 +0100

    services: shepherd: Load each service file in a fresh module.

    Fixes <https://issues.guix.gnu.org/67649>.

    * gnu/home/services/shepherd.scm (home-shepherd-configuration-file)[config]:
    Define ‘make-user-module’.  Call ‘load’ in ‘save-module-excursion’.
    * gnu/services/shepherd.scm (shepherd-configuration-file): Likewise.

Commit 2b052fe3c0fa85e9faa8873a581568ad4c78e151 still works.

Cheers,
Remco


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: system hangs at boot - LUKS /home/ problem(?)
  2024-03-30 15:25         ` Remco van 't Veer
@ 2024-04-02 20:00             ` Benjamin Slade
  0 siblings, 0 replies; 10+ messages in thread
From: Benjamin Slade @ 2024-04-02 20:00 UTC (permalink / raw)
  To: Remco van 't Veer, Fulbert, help-guix, 70051,
	Adrien 'neox' Bourmault, Ludovic Courtès

I can't roll back to the earlier commit mentioned by Remco because other things/channels depend on me being roughly up-to-date on the main guix channel.

However, I can confirm the issue, as changing my configuration *not* to mount an encrypted /home resolves the boot issue.

I note two things:

a. when I try to configure with an encrypted /home, I get error/warning messages at the end: (earlier I also got a message about the "find-crypthome-by-uuid" process failing; I changed to specify a /dev/sXN device instead)

        guix system: warning: exception caught while executing 'start' on service 'device-mapping-crypthome':
      error: system*/tty: unbound variable
      guix system: warning: some services could not be upgraded
      hint: to allow changes to all the systems to take effect, you will need to reboot.

b. no `crypttab' is created (I don't remember how Guix handles encrypted /home's to know whether or not this is expected).


--B.

On Sat, 30 Mar 2024 16:25:07 +0100 (3 days, 4 hours, 30 minutes ago), Remco van 't Veer <remco@remworks.net> wrote:

> Hi,

> Confirmed on a couple of my installs.  I too have an unencrypted root
> and encrypted home filesystems.  The passphrase prompt never appears and
> the system seems to be waiting for something or is halted.

> I've git bisected it down to:

>   commit 6f9d844d2ece7b369d17bbe678978462425f869c (HEAD)
>   Author: Ludovic Courtès <ludo@gnu.org>
>   Date:   Wed Mar 20 18:48:38 2024 +0100

>     services: shepherd: Load each service file in a fresh module.

>     Fixes <https://issues.guix.gnu.org/67649>.

>     * gnu/home/services/shepherd.scm (home-shepherd-configuration-file)[config]:
>     Define ‘make-user-module’.  Call ‘load’ in ‘save-module-excursion’.
>     * gnu/services/shepherd.scm (shepherd-configuration-file): Likewise.

> Commit 2b052fe3c0fa85e9faa8873a581568ad4c78e151 still works.

> Cheers,
> Remco

^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#70051: system hangs at boot - LUKS /home/ problem(?)
@ 2024-04-02 20:00             ` Benjamin Slade
  0 siblings, 0 replies; 10+ messages in thread
From: Benjamin Slade @ 2024-04-02 20:00 UTC (permalink / raw)
  To: Remco van 't Veer, Fulbert, help-guix, 70051,
	Adrien 'neox' Bourmault, Ludovic Courtès

[-- Attachment #1: Type: text/plain, Size: 1962 bytes --]

I can't roll back to the earlier commit mentioned by Remco because other things/channels depend on me being roughly up-to-date on the main guix channel.

However, I can confirm the issue, as changing my configuration *not* to mount an encrypted /home resolves the boot issue.

I note two things:

a. when I try to configure with an encrypted /home, I get error/warning messages at the end: (earlier I also got a message about the "find-crypthome-by-uuid" process failing; I changed to specify a /dev/sXN device instead)

        guix system: warning: exception caught while executing 'start' on service 'device-mapping-crypthome':
      error: system*/tty: unbound variable
      guix system: warning: some services could not be upgraded
      hint: to allow changes to all the systems to take effect, you will need to reboot.

b. no `crypttab' is created (I don't remember how Guix handles encrypted /home's to know whether or not this is expected).


--B.

On Sat, 30 Mar 2024 16:25:07 +0100 (3 days, 4 hours, 30 minutes ago), Remco van 't Veer <remco@remworks.net> wrote:

> Hi,

> Confirmed on a couple of my installs.  I too have an unencrypted root
> and encrypted home filesystems.  The passphrase prompt never appears and
> the system seems to be waiting for something or is halted.

> I've git bisected it down to:

>   commit 6f9d844d2ece7b369d17bbe678978462425f869c (HEAD)
>   Author: Ludovic Courtès <ludo@gnu.org>
>   Date:   Wed Mar 20 18:48:38 2024 +0100

>     services: shepherd: Load each service file in a fresh module.

>     Fixes <https://issues.guix.gnu.org/67649>.

>     * gnu/home/services/shepherd.scm (home-shepherd-configuration-file)[config]:
>     Define ‘make-user-module’.  Call ‘load’ in ‘save-module-excursion’.
>     * gnu/services/shepherd.scm (shepherd-configuration-file): Likewise.

> Commit 2b052fe3c0fa85e9faa8873a581568ad4c78e151 still works.

> Cheers,
> Remco

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: system hangs at boot - LUKS /home/ problem(?)
  2024-04-02 20:00             ` bug#70051: " Benjamin Slade
  (?)
@ 2024-04-02 20:19             ` Remco van 't Veer
  2024-04-08 11:47               ` SOLVED " Remco van 't Veer
  -1 siblings, 1 reply; 10+ messages in thread
From: Remco van 't Veer @ 2024-04-02 20:19 UTC (permalink / raw)
  To: Benjamin Slade
  Cc: Fulbert, help-guix, 70051, Adrien 'neox' Bourmault,
	Ludovic Courtès

2024/04/02, Benjamin Slade:

> I can't roll back to the earlier commit mentioned by Remco because
> other things/channels depend on me being roughly up-to-date on the
> main guix channel.

Reverting the commit on a local checkout of guix worked for me but isn't
workable of course.  I tested the patch provided by aurtzy
(https://issues.guix.gnu.org/70051#5) and that worked worked too.

For now I won't reconfigure my system until this issue is fixed or try
out "guix pull --switch-generation" to go back to some earlier situation
when I really need to deploy some configuration change.

Remco


^ permalink raw reply	[flat|nested] 10+ messages in thread

* SOLVED Re: system hangs at boot - LUKS /home/ problem(?)
  2024-04-02 20:19             ` Remco van 't Veer
@ 2024-04-08 11:47               ` Remco van 't Veer
  0 siblings, 0 replies; 10+ messages in thread
From: Remco van 't Veer @ 2024-04-08 11:47 UTC (permalink / raw)
  To: help-guix

This issue has been fixed (see also: https://issues.guix.gnu.org/70266)
It's safe to be do a guix pull and guix system reconfigure again.


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-04-08 11:48 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-26 15:15 system hangs at boot - LUKS /home/ problem(?) Fulbert
2024-03-26 17:58 ` Fulbert
2024-03-27  9:39   ` Adrien 'neox' Bourmault
2024-03-28 10:37     ` Fulbert
2024-03-28 11:34       ` Fulbert
2024-03-30 15:25         ` Remco van 't Veer
2024-04-02 20:00           ` Benjamin Slade
2024-04-02 20:00             ` bug#70051: " Benjamin Slade
2024-04-02 20:19             ` Remco van 't Veer
2024-04-08 11:47               ` SOLVED " Remco van 't Veer

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.