Subject: bug#70826: closed (Re: bug#70826: [PATCH] system: Allow distinguishing <mapped-device-type>s.)

From: [email-masked] (GNU bug Tracking System)
Date: Thu, 17 Jul 2025 23:24:02 +0000

Your bug report

#70826: luks-device-mapping-with-options breaks bootloader

which was filed against the guix package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
70826: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=70826
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#70826: [PATCH] system: Allow distinguishing <mapped-device-type>s.
From: Ludovic Courtès <[email-masked]>
To: 45mg <[email-masked]>
Cc: Tadhg McDonald-Jensen <[email-masked]>, Tomas Volf <[email-masked]>, [email-masked]
Date: Fri, 18 Jul 2025 01:22:43 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi,

Ludovic Courtès <[email-masked]> 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’.

Subject: luks-device-mapping-with-options breaks bootloader
From: Tadhg McDonald-Jensen <[email-masked]>
To: [email-masked]
Date: Tue, 7 May 2024 14:54:12 -0400
List-Id: <debbugs-submit.debbugs.gnu.org>

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.