Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1kCCJU-0001qv-EW for mharc-grub-devel@gnu.org; Sat, 29 Aug 2020 21:39:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47160) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kCCJS-0001qg-D8 for grub-devel@gnu.org; Sat, 29 Aug 2020 21:39:18 -0400 Received: from orion.archlinux.org ([2a01:4f8:160:6087::1]:38000) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kCCJP-0005rf-Sz for grub-devel@gnu.org; Sat, 29 Aug 2020 21:39:17 -0400 Received: from orion.archlinux.org (localhost [127.0.0.1]) by orion.archlinux.org (Postfix) with ESMTP id AED3D1D3858801 for ; Sun, 30 Aug 2020 01:38:58 +0000 (UTC) X-Spam-BL-Results: Subject: Re: Can grub-git be used to decrypt a LUKS2 encrypted partition? Testing Results DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=archlinux.org; s=orion; t=1598751538; bh=A6kqC2HgMpCWq8JmJlr/GdZHmaHrysIdZ2iO791I3JA=; h=Subject:To:References:From:Date:In-Reply-To; b=HHSKd7AQXRZyUwPIFSQiTAjTiDXYK86QwRQP/aXtgcTgQVxp48XjrLTmoMgiODfKX Z+6Nt8P/BJJHklkKUTMWYaPP5Mu/jsRYfZ2WDBROrqHtmZuRB43YbejfTj3fYDZsbD KE+z07FMCjMnue7nIw0JrNo/ybAm+2xAtHTskRAmZGLb6mua3nXh09+dGJbvGUw0qU HW4WVb3Oh8emfBIO+xHTLpDNnRV47aTzEQcIzxh8WZy16QpgXgj+RgEqpTsKeJhtTP 3ZcFRhokjtoxSHZQq+hej/5l3ZAt1NsthrKiqVauqJkJWHbb1oxWgr/EKItWuALiMD 5vB8+4djQ40rBS505KV7zR6TzWygr4W8sgullpX0cxUrUzMWFqPD8ySXlLKuJ/JxmJ NPRxE7f9vhQWQHjKlLG22Tcv/IyC4iMB21KpwT2tKS3L0r/618KOYYRSxeL5lJmDIo 3VLlJcDrwc/0kXiSCk+5Z6/I8Z6H3G8BzQwpyD+76v6arAdEDEW7ysdfzjCsbDARF2 bch1LjJYLKwPCSHiLLqKmn/FnS0S7pXx/ET5qM0yTvIjTUpnxBjzK4/o8sP2w77+SH xgO66LxYkSqSR4xRTO78G3+diu31eY7porsjPupGGjtgTnN8k82wIM07Q2QBx0A4r5 9vK6cqfhDRtx2j1zobhDIErk= To: grub-devel@gnu.org References: <20200828165258.GA2097@tanuki.pks.im> <20200829111924.GA863@ncase.pks.intern> <20200829174741.GA1010@tanuki.pks.im> From: Eli Schwartz X-Clacks-Overhead: GNU Terry Pratchett Message-ID: <0d7df8e8-ceff-2ef7-9924-b2968180f7df@archlinux.org> Date: Sat, 29 Aug 2020 21:38:53 -0400 MIME-Version: 1.0 In-Reply-To: <20200829174741.GA1010@tanuki.pks.im> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="KXi0VIklmsSeGqxvvVY3QpR33ZxQEhrg5" Received-SPF: pass client-ip=2a01:4f8:160:6087::1; envelope-from=eschwartz@archlinux.org; helo=orion.archlinux.org X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -53 X-Spam_score: -5.4 X-Spam_bar: ----- X-Spam_report: (-5.4 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.959, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Aug 2020 01:39:18 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --KXi0VIklmsSeGqxvvVY3QpR33ZxQEhrg5 Content-Type: multipart/mixed; boundary="xvkKC608ldNsvMXWsnpfWBgiWrkL5SH5X" --xvkKC608ldNsvMXWsnpfWBgiWrkL5SH5X Content-Type: text/plain; charset=utf-8 Content-Language: en-US-large Content-Transfer-Encoding: quoted-printable On 8/29/20 1:47 PM, Patrick Steinhardt wrote: > This is usually done automatically by GRUB when starting. But as it'll > not know to first decrypt the volume, it fails executing both of those > commands just to show you the rescue prompt afterwards. So they are lef= t > to you now after manually decrypting. I could've added a note up-front > to spare you the hours-long research, but it got so natural to me that = I > completely forgot. >=20 > You should be able to manually create a bootable image with GRUB with > `grub-mkimage`. The upside of this is that you can add your own early > configuration to automatically decrypt and do the `normal` dance. I > didn't care enought to do that myself yet, though, so I can't provide a= > working invocation of that. Is grub-install failing to add the relevant cryptomount invocation in the embedded stub, due to not realizing luks2 can be decrypted like that?= I wonder if you could hack this to work by relying on autodetection with grub-install --modules=3D"..." to force luks2 modules to be included, but= with a luks1 "/" root partition. Then *after*, convert the partition from luks1 to luks2. The grubx64.efi image should both support luks2 due to manually added modules, AND automatically Do The Right Thing with the generic cryptomount command. --=20 Eli Schwartz Arch Linux Bug Wrangler and Trusted User --xvkKC608ldNsvMXWsnpfWBgiWrkL5SH5X-- --KXi0VIklmsSeGqxvvVY3QpR33ZxQEhrg5 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEvSewel70XCra9w4EhIGKaBmvSpsFAl9LAy4ACgkQhIGKaBmv Sps4fBAAzQGC5wwFN65CBW6R/+OFbNAX1njS1nb6CwsuGINbNgAeKB+jJw2ijnnX 3m7Isf+TZWUbwoJrSGZIs6+sxui9s2uOIHFDuc7TfFPs92DLMm07pxpnpdJvA5C0 NeW3BjTffu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