From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id 8Ks4FzhgQmbwegAAqHPOHw:P1 (envelope-from ) for ; Mon, 13 May 2024 20:47:20 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id 8Ks4FzhgQmbwegAAqHPOHw (envelope-from ) for ; Mon, 13 May 2024 20:47:20 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=QcctjIby; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1715626040; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=6+otGiHlmRN59JlK8AWDmNyXiAw5T82zirPgrMn8miQ=; b=hS2z8oX58UCxId0rmIk9D6kgLcSD3J8LvJV9DPZ5cdxMkHC7Xg3aM0PZxbE8NqN8DYqMWi 4JnSpmYpHBnI0OcWtVZHA1uF1MiHNnzV2z4LmE90POfF2KNCE8mCSZsXsnLjEMhV9X2BIb S1xthUmRClwMgfRpA2aBC6JjmYe8TRzjxvWRGfCE0atersBmA1yENNmUIlGxmLT5y0bRjA 38W3931xRxyOcqxm9AVQEU/DmDpfya2qOGJwlgI70qzZo3HOw5PxvWk9/2dlmP/CzhYQZZ AR7tKBAp5eyZvL+gnVHGecmQLVRbWh2f3mqLRPc+1nCgW4hO3aM9JdEtJg9W5Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=QcctjIby; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1715626040; a=rsa-sha256; cv=none; b=kGXhW7wEkvy4W0oMJPmYX+SUVEdr0BRGA99ku+HY0L3IYM7gxiD7rS1bdjIiQIEWEqKPO3 M7kqCADjM0YUz+KIZf9sTpulQ9CNzLNws16SLXTSyqU70MGd8B/ndwxmgt77vENCsn2zbQ K2387r861ehWGlOKAjXM55N3IgjyctgfG7BuzIE5lMiPvS/ITEcxC3/ml07NSRQILk1abh zcs4iSbcBb132nMIPzeg/paJHxoTrza9DQtAn+1E/SKzC6qAMvB8flKoFa9ZnpjHR46h0V frOFK7C77++SBnvhOOWCwhmrZHtXxc8RYX1aR5DDAweyUYKITVrMRonFDqxM1g== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id BEAE368346 for ; Mon, 13 May 2024 20:47:19 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s6aLX-0007MT-2e; Mon, 13 May 2024 14:24:23 -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 ) id 1s4TEj-0005H5-Pj for bug-guix@gnu.org; Tue, 07 May 2024 18:24:37 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s4TEj-0006TT-H0 for bug-guix@gnu.org; Tue, 07 May 2024 18:24:37 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s4TF8-00051i-7t for bug-guix@gnu.org; Tue, 07 May 2024 18:25:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#70826: luks-device-mapping-with-options breaks bootloader Resent-From: Tadhg McDonald-Jensen Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 07 May 2024 22:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 70826 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 70826@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.171512069519309 (code B ref -1); Tue, 07 May 2024 22:25:02 +0000 Received: (at submit) by debbugs.gnu.org; 7 May 2024 22:24:55 +0000 Received: from localhost ([127.0.0.1]:45104 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s4TEz-00051L-Re for submit@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 ) id 1s4Pxq-0007sZ-Cu for submit@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 ) id 1s4PxL-0005Sc-Gp for bug-guix@gnu.org; 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 ) id 1s4PxK-0003d5-0D for bug-guix@gnu.org; Tue, 07 May 2024 14:54:27 -0400 Received: by mail-ej1-x62d.google.com with SMTP id a640c23a62f3a-a59d0810f59so520640566b.0 for ; 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 Date: Tue, 7 May 2024 14:54:12 -0400 Message-ID: Content-Type: multipart/alternative; boundary="000000000000e1e6390617e1b64a" Received-SPF: pass client-ip=2a00:1450:4864:20::62d; envelope-from=tadhgmister@gmail.com; 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-Mailman-Approved-At: Tue, 07 May 2024 18:24:52 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Mon, 13 May 2024 14:24:16 -0400 X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: 4.29 X-Spam-Score: 4.29 X-Migadu-Queue-Id: BEAE368346 X-Migadu-Scanner: mx13.migadu.com X-TUID: zxEFVL3UTiQl --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
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't forward it to grub in the= store-crypto-devices list.

For anyone who finds this be= fore it is fixed, you can boot your device by hitting 'c' in grub a= nd typing these commands:
grub> insmod luks
grub>= insmod luks2
grub> cryptomount (XXX)
grub> set r= oot=3D(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.<= /div>
--000000000000e1e6390617e1b64a--