From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id iNIwC2VHuWYELwEAqHPOHw:P1 (envelope-from ) for ; Sun, 11 Aug 2024 23:21:09 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id iNIwC2VHuWYELwEAqHPOHw (envelope-from ) for ; Mon, 12 Aug 2024 01:21:09 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=GSPh2G9k; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=IKqlZywh; 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), DKIM 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=1723418469; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=bP+vptrwQc5dShQc1XG5TuQGNpgo6Sq8WtDhIlNawv8=; b=m0HOoIgH4LVfNfuUka9U2ukH3Ek2xBYhBxdyu3PKH6Q0Kd9wLIuGlSQKCa+hGKyHqS0/nW xarNmwRrHO7+5KeKwj6rf8uL+V+KzSkxCMFYcxd+Aa55EjsSTR8AajxsImdiueGUcLucW4 50wUviBMRripcs2Gr/r5383aZSUtwvC026mPgYa1TE/hNnr7xIgtJj73PPM6gmb9q5/Cpp dT3sUzIjnCjdXoGT1+6R04Q71eyRJmFAJW5twKH3wC7qZVVIVqsUjSeVPWSCD9n8LDKfuH 4n3bbmVTxcOynvXLNSdkTDJ6adbwCd/q+BIc60tHj5xAhr1xisB47mvRJPojTA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=GSPh2G9k; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=IKqlZywh; 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), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1723418469; a=rsa-sha256; cv=none; b=PQOJU6XD4tG+4lnTKivnwFPpTNBhrZmOAwybvTXBsCG+LmueI9vJF68AAm7+gIHjOgkov6 RLR1+g01A43D4mwjVUzbXZACJdOZ1Xro11Y6RWz/MBZ6rQAg4Ir3zJsmUwNM5hzh4tDFHZ RD1D4O1ydSz21+/4HfT3JYb6vUmblny3tlKQZMxkEOrh1lxRpV45HjAXsdAo0N9gbf1ZTd TvfI+cYgkDeDluwh3TwCKHt/BTDOrSfLkwSuvKBBapeXyamTnFOZ60Kmlwg58aHXJqZpX8 kWQlOaHiy+Cae3Gc0ev0tds2QRHHNzZphUUFiAN8ETACcbnb1Xu9jorq90qMOg== 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 E8FCD7ABE3 for ; Mon, 12 Aug 2024 01:21:08 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sdHrV-0002oT-L2; Sun, 11 Aug 2024 19:20:33 -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 1sdHrU-0002nu-2C for bug-guix@gnu.org; Sun, 11 Aug 2024 19:20:32 -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 1sdHrT-0008Tv-Ky for bug-guix@gnu.org; Sun, 11 Aug 2024 19:20:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=Date:From:In-Reply-To:References:MIME-Version:To:Subject; bh=bP+vptrwQc5dShQc1XG5TuQGNpgo6Sq8WtDhIlNawv8=; b=GSPh2G9kRPG2p+lIPi/VU31oTuinHlvSqgMP4gydVo2iZOfTmTC1iTVKsUavz39TMeNS0jd8rRcPcvCax6lcrJW/nxWxhnnkuciwmPXDiOyYpmiz1HaJFz+hil4fFkp9QBztHyz3IaVUAe13scD3asCnfFZaeJ/tLEg5lS8CVV9mIW+AISxJ3LqxaByc146HEimQ/Pf1fm3GTV1Vp38gnVh+Q8o/X07TmLj0HYJWnyqk+C9wgRmQ1NG65PHNu2Tvd1I/QFvNkQIq/1sUmnhDaTD1qaUQj886knejlr2kM0ZtSMOz8zMRyNd9jIAazn06SthKJAqYTEZqjOCU/0qtag==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sdHry-00039k-HZ for bug-guix@gnu.org; Sun, 11 Aug 2024 19:21: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: Sun, 11 Aug 2024 23:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70826 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Tomas Volf <~@wolfsden.cz> Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= , 70826@debbugs.gnu.org Received: via spool by 70826-submit@debbugs.gnu.org id=B70826.172341845912116 (code B ref 70826); Sun, 11 Aug 2024 23:21:02 +0000 Received: (at 70826) by debbugs.gnu.org; 11 Aug 2024 23:20:59 +0000 Received: from localhost ([127.0.0.1]:42041 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sdHrv-00039H-2O for submit@debbugs.gnu.org; Sun, 11 Aug 2024 19:20:59 -0400 Received: from mail-ej1-f54.google.com ([209.85.218.54]:49632) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sdHrr-000393-SJ for 70826@debbugs.gnu.org; Sun, 11 Aug 2024 19:20:57 -0400 Received: by mail-ej1-f54.google.com with SMTP id a640c23a62f3a-a7a81bd549eso261980166b.3 for <70826@debbugs.gnu.org>; Sun, 11 Aug 2024 16:20:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1723418358; x=1724023158; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=bP+vptrwQc5dShQc1XG5TuQGNpgo6Sq8WtDhIlNawv8=; b=IKqlZywhFfU22Ga7Wo04fQ1SEja80SbxIqG2bPUAptcSXegO2iP2NvDY5VJcb6TNso xdFQuNDqMR+3RKeNIWqEwPZa2obwXsGdQN6XY+1daNaCVlFjyyiA/e3aJpkALrverwCT SwuIEOTh6lWOkP9FCqYVwyq2q2FYad3WjBX8G/UO0yyXom7obPuztjnAZTM4GCL0eGMl yBv79nXm3j/PVclqcY30eSdWr52WR8DlicjMeV7AowCO0BC7PY0MokpFQmKppsynGrX1 ryG1bCUxNHbX74thDQu6YVvhfOxoR9lqeKjUGmRQjis9IuOOwY6XjvcNf9StiJCg4liS Dc7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723418358; x=1724023158; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=bP+vptrwQc5dShQc1XG5TuQGNpgo6Sq8WtDhIlNawv8=; b=Pa5CAMBKWgK0xkxfsiYcyj2y4CWdcwo7Lt5HaY5AziFt8u6TwKgcu6p/FB4LGoQNyZ MNJP7qGKJdQPIzLRAqwc7a9kCnwg+ybxnvgipsrdXTykfDTS+aZlEbVsIk+dM+rKUzcc 6bB4HKFerPm2D8XOlo7+faW7eNn+vficBGggL7RdVFkOJrnflgrn80SZpiHkiK6r4dtJ e5pA+OEEOyvxHGb/rGHp70Xz7OaRvQQw8wrJVZqKQa72jF4yCEKb/74weqRgx+mzAVFx lemeXNNrGXulS84NRkg29yWzKjiecl7/CARIhRw5CdUuTjL0mTmkV0OOS8smNpW2dPPW cuAw== X-Forwarded-Encrypted: i=1; AJvYcCVFQXcTibU23r2+/V84gdmpAALSEcwgTIxHUDoQ3eiNEqkwicTBrDfdrS1XPIqmBM34fgC86aF+tJ9RjhVdK+ZBSFH8rX8= X-Gm-Message-State: AOJu0YwY6kYMD1NdXUrgzfnIQG+CM63dgFTnD67mW2REMa199QiIK3Ph wnNQkTWZAtWp5UQn0LT7C0bUddfSVXO8TY6UQ/5VrLN9rqKmtDlZYIgv/OQxD+YgxB/jF3mxHYx 4b5OejNGcMEBdwS5s1eLRCFN8WERCo0Gc X-Google-Smtp-Source: AGHT+IFfhrUmqSw7hzSQV1rEYWKOp0cCS2ns16f6+p1GMDwBChAWeP123G4uRBMNy2ELzpQLTmg2tnoqbGI0R6xpVEA= X-Received: by 2002:a17:907:9484:b0:a7a:a801:12b3 with SMTP id a640c23a62f3a-a80aa5fb042mr616141666b.40.1723418358038; Sun, 11 Aug 2024 16:19:18 -0700 (PDT) MIME-Version: 1.0 References: <87ikz22pgo.fsf@gnu.org> <44aec6b7-dcba-4598-c984-068333cc696b@gmail.com> In-Reply-To: <44aec6b7-dcba-4598-c984-068333cc696b@gmail.com> From: Tadhg McDonald-Jensen Date: Sun, 11 Aug 2024 19:19:06 -0400 Message-ID: Content-Type: multipart/alternative; boundary="00000000000007c729061f709b88" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -5.49 X-Migadu-Queue-Id: E8FCD7ABE3 X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -5.49 X-TUID: 7Eo3G0P4WO1I --00000000000007c729061f709b88 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable In case it is relevant my disk is using GPT partition table with this layout: $ lsblk --output=3D"NAME,MAJ:MIN,TYPE,MOUNTPOINTS,UUID" NAME MAJ:MIN TYPE MOUNTPOINTS UUID nvme0n1 259:0 disk =E2=94=9C=E2=94=80nvme0n1p1 259:1 part /boot 5190-E840 =E2=94=94=E2=94=80nvme0n1p2 259:2 part c0010d06-0bd1-4ae2-93e6-f2f89a3a670b =E2=94=94=E2=94=80cryptroot 253:0 crypt /gnu/store / Only the main partition is encrypted with LUKS and grub is located on its own partition not in the in between space in an MBR drive. It is grub that is being responsible for decrypting the partition not my UEFI decrypting the whole drive. Tadhg On Sun, Aug 11, 2024 at 6:33=E2=80=AFPM Tadhg McDonald-Jensen wrote: > I have attached a config I just did `sudo guix system reconfigure` > and confirmed it was missing the `insmod luks` in /boot/grub/grub.cfg > > Sorry for the delay, > Tadhg McD-J > > On 2024-07-23 2:19 p.m., Tomas Volf wrote: > > On 2024-05-25 10:30:49 -0400, Tadhg McDonald-Jensen wrote: > >> That unfortunately doesn't fix the problem, > >> `luks-device-mapping-with-options` is a routine that returns the > >> `mapped-device-kind` so it won't check by equality. > >> > >> A possible solution is to check whether the `mapped-device-kind-close` > >> routines are the same as these are shared. > > > > What I find interesting is that I too am using > luks-device-mapping-with-options > > and my system boots just fine. So I wonder what the difference is. > Could you > > share your system configuration please? Or at least the relevant parts > (I > > assume at least bootloader, file-systems and mapped-devices fields)? > > > > I would like to properly understand the problem here and why it works > for me. > > > > Thanks, > > Tomas Volf > > > > -- > > There are only two hard things in Computer Science: > > cache invalidation, naming things and off-by-one errors. --00000000000007c729061f709b88 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
In case it is relevant my disk is using GPT partition tabl= e with this layout:

$ lsblk --output=3D"NAME,MAJ:MIN,TYPE,MOUNT= POINTS,UUID"
NAME MAJ:MIN TYPE MOUNTPOINTS UUID
nvme0n= 1 259:0 disk
=E2=94=9C=E2=94=80nvme0n1p1 259:1 part /boot = 5190-E840
=E2=94=94=E2=94=80nvme0n1p2 259:2 part c= 0010d06-0bd1-4ae2-93e6-f2f89a3a670b
=E2=94=94=E2=94=80cryptroot 253:0 = crypt /gnu/store
/

Only the main pa= rtition is encrypted with LUKS and grub is located on
its own partition = not in the in between space in an MBR drive.

It is grub that is bein= g responsible for decrypting the partition
not my UEFI decrypting the wh= ole drive.

Tadhg

On Sun, Aug 11, 2024 at 6:33=E2=80=AFPM Tadhg Mc= Donald-Jensen <tadhgmister@gmai= l.com> wrote:
I have attached a config I just did `sudo guix system reconfigure`
and confirmed it was missing the `insmod luks` in /boot/grub/grub.cfg

Sorry for the delay,
Tadhg McD-J

On 2024-07-23 2:19 p.m., Tomas Volf wrote:
> On 2024-05-25 10:30:49 -0400, Tadhg McDonald-Jensen wrote:
>> That unfortunately doesn't fix the problem,
>> `luks-device-mapping-with-options` is a routine that returns the >> `mapped-device-kind` so it won't check by equality.
>>
>> A possible solution is to check whether the `mapped-device-kind-cl= ose`
>> routines are the same as these are shared.
>
> What I find interesting is that I too am using luks-device-mapping-wit= h-options
> and my system boots just fine.=C2=A0 So I wonder what the difference i= s.=C2=A0 Could you
> share your system configuration please?=C2=A0 Or at least the relevant= parts (I
> assume at least bootloader, file-systems and mapped-devices fields)? >
> I would like to properly understand the problem here and why it works = for me.
>
> Thanks,
> Tomas Volf
>
> --
> There are only two hard things in Computer Science:
> cache invalidation, naming things and off-by-one errors.
<= /div> --00000000000007c729061f709b88--