Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1kC4x7-0000V2-8X for mharc-grub-devel@gnu.org; Sat, 29 Aug 2020 13:47:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41476) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kC4x5-0000Uv-9X for grub-devel@gnu.org; Sat, 29 Aug 2020 13:47:43 -0400 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:34555) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kC4x3-0007R5-3G for grub-devel@gnu.org; Sat, 29 Aug 2020 13:47:42 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id E9F069F3; Sat, 29 Aug 2020 13:47:38 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Sat, 29 Aug 2020 13:47:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pks.im; h=date :from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=HjN9418g9JbiicgeVavm9GBWKqD fU5yENSfiP3symy4=; b=nmALz77cm+gkcDIaWeiGvJ7ezi4xqw6W/QTw1S47WK8 nDyINzK6sszsGXkro1ql1mdiwdVQ1LWukdWBzv8XwsrEd9qtLQn8zFHhSCR8IizT o5FcYwh2QEmxZXeqsysRWkSDoUhtKPyzpzOmS6HvCanFHpNv9gxkD1HBwP7kGAZ+ s04UfD2Kp5FwryO6KXpXn+xnwtbD4yg6oekIJUdzofWgnmx+dW9LtrAnJgjLA3bU ynOn2mSxL1vw4MU8P29ZbqPE/H2NDITMoMEZucXUVlKnL4dwf4Y1o5YApUA9Yt5L bOYEe/cqpgxPyMp18n9VazQF8ap0ztULuAvutzJ4AQw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=HjN941 8g9JbiicgeVavm9GBWKqDfU5yENSfiP3symy4=; b=dE2O2gAJj7eH7GjT9UXmfr M8Esbnxt03fMdRXDCMzr4hE9Q0knJIvQPec99eFDU3LI8kjOlRWgB8kV3cOvRoSv F1tvacwoZEOf5r8O+dAMq+y34NX6enRsJWHOzI8ZX4JTFvcM7MTU+I3/WPJABeIw eeX22wBVFdzhfsBk513sK73cavLxyoVv9WatOcPuTrHvp+/aiBJ7mvCAPW/Ipp49 zENHHzbllaQxNutsMfTzxh9aWy5LUJ1l51UAxj/C+WNsDm7AFGq7G1ncmsroRDK0 IuHc8hgJCVVbCGrg727TRS/M9exsyxnS9oy0j+/KaLi8ikfAbcHxuXe5n1pA5kIw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrudefuddguddujecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvuffkfhggtggujgesghdtreertddtvdenucfhrhhomheprfgrthhr ihgtkhcuufhtvghinhhhrghrughtuceophhssehpkhhsrdhimheqnecuggftrfgrthhtvg hrnhepheeghfdtfeeuffehkefgffduleffjedthfdvjeektdfhhedvlefgtefgvdettdfh necukfhppeejkedrheehrdeffedruddufeenucevlhhushhtvghrufhiiigvpedtnecurf grrhgrmhepmhgrihhlfhhrohhmpehpshesphhkshdrihhm X-ME-Proxy: Received: from vm-mail.pks.im (x4e372171.dyn.telefonica.de [78.55.33.113]) by mail.messagingengine.com (Postfix) with ESMTPA id 8C2A0328005D; Sat, 29 Aug 2020 13:47:37 -0400 (EDT) Received: from localhost (tanuki [10.192.0.23]) by vm-mail.pks.im (OpenSMTPD) with ESMTPSA id 7fdb6480 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Sat, 29 Aug 2020 17:47:36 +0000 (UTC) Date: Sat, 29 Aug 2020 19:47:41 +0200 From: Patrick Steinhardt To: The development of GNU GRUB Cc: HardenedArray Subject: Re: Can grub-git be used to decrypt a LUKS2 encrypted partition? Testing Results Message-ID: <20200829174741.GA1010@tanuki.pks.im> References: <20200828165258.GA2097@tanuki.pks.im> <20200829111924.GA863@ncase.pks.intern> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="lrZ03NoBR/3+SXJZ" Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=64.147.123.20; envelope-from=ps@pks.im; helo=wout4-smtp.messagingengine.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/29 13:47:39 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-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: Sat, 29 Aug 2020 17:47:43 -0000 --lrZ03NoBR/3+SXJZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Aug 29, 2020 at 04:27:11PM +0000, HardenedArray via Grub-devel wrot= e: > Patrick, >=20 > I truly appreciate your deep knowledge of grub, and I am happy to report = I think we have a working LUKS2 encrypted /boot solution based on your inpu= t! Glad it worked! [snip] > From this still sad NON-BOOTED state of affairs, it merely took me hours = of research to undig myself from this self-inflicted grave! >=20 > from `grub rescue>` type: 'insmod normal' >=20 > from `grub rescue>` type: 'normal' >=20 > That should launch your typical/welcome Arch Linux and Advanced options f= or Arch Linux screen as controlled by /etc/default/grub and by X. 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 left 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. 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. Patrick --lrZ03NoBR/3+SXJZ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEF9hrgiFbCdvenl/rVbJhu7ckPpQFAl9KlLwACgkQVbJhu7ck PpQ1CBAAhCPn5geoFdAaOS8tRavVdWiBGLVNyRWV4Mi+LW0yj6BmcjwCn5JmIF1t YrvCsbkO/T060j4COIwzDRXNab0kbDQVW/5jL4KcCmDYGqZxT89n0ULBEEJIOW3M kKThPBGMpy5OFt1AwS1XQmziG+/XCtZs89gewFE76ge/AXK3JEtdfAlE35MJoZIv M8jEu0qvKUevElIkqeicgrnZ3lXAZtAvfnlQuB+zfM+BpFfW04jKvWjYtpSuQ+Df PII5D3uXN9s0XsG7HeBWTXW2+kAMXlC0ROR4sxoVTI6LZQPgNBDIv3+JTJ61vsZn fRkQBLqPJzNsFqdnnw9/1EljDxMLw0Jg37JiP9Kuq54rgMXYVjQwnt+BFSPKqGuH tKTDO16HlT0ECWQZmFMUn/KcGY5fzUQBBTUpiqnG+LImTE+7yIoEwODS0mk8LQBI vw1MZ332Bq7wDetVAhLaLPX9WxvUttJN1ftgilWbQVLusTi7v19rYG3FneMbx69k CGt8KqsJl1SofYhdezYZHAFaEo6Oqx2qsA2x7DK5HugvyshLqJgqlDn/lFFrVQWd fCoblB5h0Ai8KNku+T+cEBct7OfzYMSZmeqUjbklmqtxzSQkxnT30VZIGJhrl1O5 /XKFnpIpu2zvODyycZWfkRuo50Pyap4arGlr+blxDjiaD2yLIfs= =p186 -----END PGP SIGNATURE----- --lrZ03NoBR/3+SXJZ--