GNU bug report logs - #70826
luks-device-mapping-with-options breaks bootloader

Previous Next

Package: guix;

Reported by: Tadhg McDonald-Jensen <tadhgmister <at> gmail.com>

Date: Tue, 7 May 2024 22:25:02 UTC

Severity: important

Done: Ludovic Courtès <ludo <at> gnu.org>

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#70826: closed (luks-device-mapping-with-options breaks
 bootloader)
Date: Thu, 17 Jul 2025 23:24:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Fri, 18 Jul 2025 01:22:43 +0200
with message-id <87qzye9zcs.fsf <at> gnu.org>
and subject line Re: bug#70826: [PATCH] system: Allow distinguishing <mapped-device-type>s.
has caused the debbugs.gnu.org bug report #70826,
regarding luks-device-mapping-with-options breaks bootloader
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
70826: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=70826
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Tadhg McDonald-Jensen <tadhgmister <at> gmail.com>
To: bug-guix <at> gnu.org
Subject: luks-device-mapping-with-options breaks bootloader
Date: Tue, 7 May 2024 14:54:12 -0400
[Message part 3 (text/plain, inline)]
using the `luks-device-mapping-with-options` mapped device type defined in
(gnu system mapped-devices) causes grub or other bootloaders to not
properly attempt to mount the encrypted drive. This is caused by the
commit 39a9404 which identifies luks mapped devices by checking if the type
is equal to `luks-device-mapping`, so by using a different routine that is
a proxy to that one it doesn't forward it to grub in the
store-crypto-devices list.

For anyone who finds this before it is fixed, you can boot your device by
hitting 'c' in grub and typing these commands:
grub> insmod luks
grub> insmod luks2
grub> cryptomount (XXX)
grub> set root=(crypto)
grub> configfile (YYY)/grub/grub.cfg

Where (XXX) is the encrypted partition and (YYY) is the boot partition with
the grub config, these can be found by doing `ls` command.
[Message part 4 (text/html, inline)]
[Message part 5 (message/rfc822, inline)]
From: Ludovic Courtès <ludo <at> gnu.org>
To: 45mg <45mg.writes <at> gmail.com>
Cc: Tadhg McDonald-Jensen <tadhgmister <at> gmail.com>, Tomas Volf <~@wolfsden.cz>,
 70826-done <at> debbugs.gnu.org
Subject: Re: bug#70826: [PATCH] system: Allow distinguishing
 <mapped-device-type>s.
Date: Fri, 18 Jul 2025 01:22:43 +0200
Hi,

Ludovic Courtès <ludo <at> gnu.org> writes:

> Hello 45mg and all,
>
> I polished the patch I had sent in this thread:
>
>   https://codeberg.org/guix/guix/pulls/1048

Pushed as 14c8728f0d812ea2c396b3c0564fa8da1202f430.

Ludo’.


This bug report was last modified 4 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.