Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1kCRvB-0004MJ-4k for mharc-grub-devel@gnu.org; Sun, 30 Aug 2020 14:19:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54782) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kCRv9-0004Lt-AZ for grub-devel@gnu.org; Sun, 30 Aug 2020 14:19:15 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:44721) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kCRv7-0006Se-7M for grub-devel@gnu.org; Sun, 30 Aug 2020 14:19:15 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 0CD4F5C011B; Sun, 30 Aug 2020 14:19:12 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Sun, 30 Aug 2020 14:19:12 -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=k38wRqJC/BOSSMjmapXS0FguwH/ 4SzSqAIEK98GykqE=; b=iOjN+SNiz+f3YZ5ZgaL6dyxgDnU9/3N75mWf2qyxMzl JtSlZpbcDeWcfrrBz1GMvviYa6VPykruOd1CaVmxM+hyCZhiXzCSxU77vQ7vJeUb bQ+oNGYhdTFf/hTa9cAKVvtagiPJ05UDzu6TgUxc548tdieTFY48KbpEHBqbOsAs zTgc8bVkZnpfbqFon95sAW7RmLiZYUsbLNSbt+F6DaEwghzr0xOvT99R/8V2HfVW sgjRO67ubTkrKjIA0USuIZQl5DaJgK+4BvakYIGSmBdvz/iCh7g6MCFTzU8oCfpi h9CwObGsBWFo91zJ4z/ICPVRaarpRbz67otpDXjXTJg== 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=k38wRq JC/BOSSMjmapXS0FguwH/4SzSqAIEK98GykqE=; b=nQPGLpdJ+lLzwd1sg6I1q0 +EkVlO5dqU8IWYbUfVpSAW3MaQH6hpgkL0u/PcL79YXiGt0QhtD10NU4bzDPYp8m c0F69rbYCIgz91eJPXuEsJpo02LgtHRoCC9UdXKRBBACXKyxINfRYqfvkth/wo0O sQBm40F2cOhaulyN3QlHGlAHxoP3wHpZsA2lGOyzdjk4PjPh2EiUn+YIZQx+6fCT kaZxeK45t8Lv7R7HT7Lw28UFcdVRTWiMT1iKRpeuhJEHWprgck5fjQUYfU0y0D0M AsfD2g0NX7wLIcqPAXrqeJttzw1H9/PLHOyTE7IJ+ESHRxHGNxO+wRGk/c4Q2ieA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrudeffedguddvfecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvuffkfhggtggujgesghdtreertddtvdenucfhrhhomheprfgrthhr ihgtkhcuufhtvghinhhhrghrughtuceophhssehpkhhsrdhimheqnecuggftrfgrthhtvg hrnheptedtkeeuffefjedukeekleejveeuuedtkefgudejjeegiefgudeigfevgeehgeff necuffhomhgrihhnpegrrhgthhhlihhnuhigrdhorhhgnecukfhppeejjedrudeluddrie dvrddukedunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhho mhepphhssehpkhhsrdhimh X-ME-Proxy: Received: from vm-mail.pks.im (x4dbf3eb5.dyn.telefonica.de [77.191.62.181]) by mail.messagingengine.com (Postfix) with ESMTPA id F34A330600B4; Sun, 30 Aug 2020 14:19:10 -0400 (EDT) Received: from localhost (tanuki [10.192.0.23]) by vm-mail.pks.im (OpenSMTPD) with ESMTPSA id ad41541a (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Sun, 30 Aug 2020 18:19:09 +0000 (UTC) Date: Sun, 30 Aug 2020 20:19:08 +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: <20200830181908.GB62141@tanuki.pks.im> References: <20200828165258.GA2097@tanuki.pks.im> <20200829111924.GA863@ncase.pks.intern> <20200829174741.GA1010@tanuki.pks.im> <0d7df8e8-ceff-2ef7-9924-b2968180f7df@archlinux.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="yNb1oOkm5a9FJOVX" Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=66.111.4.28; envelope-from=ps@pks.im; helo=out4-smtp.messagingengine.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/30 14:08:29 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.01, RCVD_IN_MSPIKE_WL=-0.01, 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: Sun, 30 Aug 2020 18:19:15 -0000 --yNb1oOkm5a9FJOVX Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Aug 30, 2020 at 03:30:39PM +0000, HardenedArray via Grub-devel wrot= e: > As a direct consequence of your valuable `--modules=3D` input, I have > taken the time and attempted to carefully document my entire LUKS2 > unlocking encrypted /boot process for the benefit of others, similarly > situated. Great to have some documentation of the process, thanks! > My procedure and comments are posted at: > https://aur.archlinux.org/packages/grub-git/ under an intentionally > Five Eyes 'unlinked' nick. I know you understand. >=20 > Please take a moment to review my boot sequence comments within Step > 11 and following Step 13, both of which are in concordance with my > understanding of the GRUB encrypted /boot unlocking sequence. >=20 > If either statement needs modification, please let me know, as I do > not want others to adopt an incorrect understanding of how both GRUB > and the kernel go about unlocking Keyslot 1, then Keyslot 0. I did a quick read and things look mostly fine. Partitions may obviously change between installation, but I guess people can figure that out on their own. > Patrick, I've also noted Eli's further input, immediately below. >=20 > Given that you now know exactly how I've encrypted / and how I unlock > my encrypted: /boot, swap and /, if you can indeed 'hack' a suitable > `grub-mkimage` command for me to test, I would be happy to test it. I currently don't have any available, sorry. I never did the custom config thing yet, even though it shouldn't be too hard. I hope to find some time in the next few days to give it a test and will report back. > However, please be sure to tell me whether you intend any such > `grub-mkimage` directive to be a REPLACEMENT for `grub-mkconfig` or as > a supplemental command. It's not a replacement of `grub-mkconfig`, but is part of what `grub-install` does. `grub-mkimage` will create the executable loaded by your bootloader, which includes any pre-loaded modules as well as the early boot config. `grub-mkconfig` will create the configuration that's used after this early boot step and is loaded when you execute `normal`. Patrick --yNb1oOkm5a9FJOVX Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEF9hrgiFbCdvenl/rVbJhu7ckPpQFAl9L7ZsACgkQVbJhu7ck PpQ20RAArZu4F94XIXt5W065PhuAAuBVRMWk9DwS3KDeRi/beg+ruTPB9KH9ukn4 SZmatH7VIyqH5FicNN1uRggtAVWX6VCkVSJEwDiImMO/jqP3tFFPQYmmjm6vyhyg ZOlTIgNdIeUBv9saDj/zXXOa/m/LJiraP2jh/lQuCF2URMAsJfVCOgGSAbXkCRGi dZ9VcKouEUfBa4Vl+PXxe2iG86L5tbXvdQUZM02ANAO8PBVQtMV/NvuMYaNb15Kn s6Hr/sahB7zbODVJcSL8HFqlcKJ4GmiPtc64E/9A/J2COvDnmpZS4R3OPrmY5W1C 2wJQiqT1/OyyuWO0ejxwBW8+FbKI7CkGHMGTo+fAPFPAmER8k+2ibYjVuvsa873H kpM+Kit1QAZE02VoyWwG1Tk/8UjvXT7FEcJhrm4fOR0kC56I6mDCbyzJMVAkf1Yk SkAsgc/RT5EQ5FS4V7OoWlia9c+HUR/BMNLB1yTfBRbp5pFUuUhqbDdM5u5O5zz3 u6Xr/huyT4mseiTtFSvh0TRaOaCtutET4iHUd3DFSH1pFwpYvO+drkWPMFhX5wFU gI/Lst0CUwIF+WXIw646ZfTuGL/yw8hOqJY5MuiWO/xudulN11dnNbscuQpsRigN j0RV1PMrQHpHJV4zRwsxcD3wrsHxkdJ1mMmqjS3gaq/RUzgAjpM= =CDKH -----END PGP SIGNATURE----- --yNb1oOkm5a9FJOVX--