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

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Severity: important; Reported by: Tadhg McDonald-Jensen <tadhgmister@HIDDEN>; dated Tue, 7 May 2024 22:25:02 UTC; Maintainer for guix is bug-guix@HIDDEN.
Severity set to 'important' from 'normal' Request was from Ludovic Courtès <ludo@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 7 May 2024 22:24:55 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue May 07 18:24:55 2024
Received: from localhost ([127.0.0.1]:45104 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1s4TEz-00051L-Re
	for submit <at> debbugs.gnu.org; Tue, 07 May 2024 18:24:55 -0400
Received: from lists.gnu.org ([2001:470:142::17]:49664)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <tadhgmister@HIDDEN>) id 1s4Pxq-0007sZ-Cu
 for submit <at> debbugs.gnu.org; Tue, 07 May 2024 14:55:01 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <tadhgmister@HIDDEN>)
 id 1s4PxL-0005Sc-Gp
 for bug-guix@HIDDEN; Tue, 07 May 2024 14:54:27 -0400
Received: from mail-ej1-x62d.google.com ([2a00:1450:4864:20::62d])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <tadhgmister@HIDDEN>)
 id 1s4PxK-0003d5-0D
 for bug-guix@HIDDEN; Tue, 07 May 2024 14:54:27 -0400
Received: by mail-ej1-x62d.google.com with SMTP id
 a640c23a62f3a-a59d0810f59so520640566b.0
 for <bug-guix@HIDDEN>; Tue, 07 May 2024 11:54:25 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1715108064; x=1715712864; darn=gnu.org;
 h=to:subject:message-id:date:from:mime-version:from:to:cc:subject
 :date:message-id:reply-to;
 bh=6+otGiHlmRN59JlK8AWDmNyXiAw5T82zirPgrMn8miQ=;
 b=QcctjIby60b6sVfpTkKbGIiM3l5JCQoegwvg8DIuDpp/U7GnQnvvVnT/pYoOSa417N
 91QWP/oEHclRS3wXwQ93eZGj6YL7h03LlEPxNf/kPnUZObyVXQ73MEtBUXKkhqAmxvMC
 GR7yMZWy8OFEqk4xS3k15WeGnSsA5JlnC7PTjXcYiW8WV/hzOXSgPYEUHTHBMhZNrgnr
 f3gzNkrah84rF3osm0iO36iFrxO93McvrjC5fFJIB6kM6okBfFeN6gfR2KgT2bq8S5OA
 9eXVmXdOlZSN86a3PugPNMFkXj54NVG8zdpB32fzRyeiGIV1tUTq5OFDYmxFmQrM3P41
 c03Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1715108064; x=1715712864;
 h=to:subject:message-id:date:from:mime-version:x-gm-message-state
 :from:to:cc:subject:date:message-id:reply-to;
 bh=6+otGiHlmRN59JlK8AWDmNyXiAw5T82zirPgrMn8miQ=;
 b=q9/XHjLjBvbV9SKX5HoJl6SSeEkLcwonD0GY0W6Jo0FokUuieGUPDzSEqYeqH8KXq2
 Xg3KCuKBzC4SpkOott5bsEbC60E+7WQNQ3xWvEBjPMKEIJe7gFATdtYxzbclOwJrYGfr
 izEq04kFcTtmsELmNh9bDuDLb3chnlmfzCkiw2AUD7xrJAwwx7guseAqy3x5yf7YEUFa
 kw+BXCR5MpgG7g8EidflW06hl4oZpZyx5699kttZl4n2lgtUItkqXSsVuXnpX+1npr7q
 ebL9fEF3DGxB6o7ZmBCSxHttxOfEF3lBYKBV6TFha34sBsFl94Rx1Ny1icrpPBJA7QpY
 petg==
X-Gm-Message-State: AOJu0YwTCloq4T/D3bx3wfOso+3ARtPdG9JS/uFd12Q7SzNcdVubewdE
 MhA61ydzMhoW1N00p/k/z9q6WTEbRHQhDlEqv295Uy3E46DowBnM93j1a/TzER8kg2EGacuRAB/
 OqWK2PAi1h9NkkhLQ7R4//TEiLeccFkto+SA=
X-Google-Smtp-Source: AGHT+IEl2K4yT+hVmcHtVycNGbC1qT0KhoPllr0xdNEQeMD05bZCBvIqaa2vZzuJt6lZZlDcP5hhIhwzqaFF7bHl+P8=
X-Received: by 2002:a17:906:2795:b0:a59:af85:17e9 with SMTP id
 a640c23a62f3a-a59fb9b88d6mr21869166b.55.1715108063600; Tue, 07 May 2024
 11:54:23 -0700 (PDT)
MIME-Version: 1.0
From: Tadhg McDonald-Jensen <tadhgmister@HIDDEN>
Date: Tue, 7 May 2024 14:54:12 -0400
Message-ID: <CAP5DvDj1Xgkr5Mzy2XEzj6O86Nm=Z=hczhKQpCYKhV8Z7mg=BA@HIDDEN>
Subject: luks-device-mapping-with-options breaks bootloader
To: bug-guix@HIDDEN
Content-Type: multipart/alternative; boundary="000000000000e1e6390617e1b64a"
Received-SPF: pass client-ip=2a00:1450:4864:20::62d;
 envelope-from=tadhgmister@HIDDEN; helo=mail-ej1-x62d.google.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Tue, 07 May 2024 18:24:52 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

--000000000000e1e6390617e1b64a
Content-Type: text/plain; charset="UTF-8"

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.

--000000000000e1e6390617e1b64a
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">using the `luks-device-mapping-with-options` mapped device=
 type defined in (gnu system mapped-devices) causes grub or other bootloade=
rs to not properly attempt to mount the encrypted drive. This is caused by =
the commit=C2=A039a9404 which identifies luks mapped devices by checking if=
 the type is equal to `luks-device-mapping`, so by using a different=C2=A0r=
outine that is a proxy to that one it doesn&#39;t forward it to grub in the=
 store-crypto-devices list.<div><br></div><div>For anyone who finds this be=
fore it is fixed, you can boot your device by hitting &#39;c&#39; in grub a=
nd typing these commands:</div><div>grub&gt; insmod luks</div><div>grub&gt;=
 insmod luks2</div><div>grub&gt; cryptomount (XXX)</div><div>grub&gt; set r=
oot=3D(crypto)</div><div>grub&gt; configfile (YYY)/grub/grub.cfg</div><div>=
<br></div><div>Where (XXX) is the encrypted partition and (YYY) is the boot=
 partition with the grub config, these can be found by doing `ls` command.<=
/div></div>

--000000000000e1e6390617e1b64a--




Acknowledgement sent to Tadhg McDonald-Jensen <tadhgmister@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#70826; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sat, 25 May 2024 09:45:01 UTC

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