Re: [PATCH v9 5/7] cryptodisk: Add options to cryptomount to support keyfiles

2022-04-29 Thread Daniel Kiper
On Mon, Apr 11, 2022 at 06:40:26AM +, Glenn Washburn wrote: > From: John Lane > > Add the options --key-file, --keyfile-offset, and --keyfile-size to > cryptomount and code to put read the requested key file data and pass > via the cargs struct. Note, key file data is for all intents and purpo

Re: [PATCH v9 6/7] luks2: Add detached header support

2022-04-29 Thread Daniel Kiper
On Mon, Apr 11, 2022 at 06:40:27AM +, Glenn Washburn wrote: > If a header file is given to the LUKS2 backend, use that file as the LUKS2 > header, instead of looking for it on the disk. > > Signed-off-by: Glenn Washburn > --- > grub-core/disk/luks2.c | 67 ++---

Re: [PATCH v9 7/7] docs: Add documentation on keyfile and detached header options to cryptomount

2022-04-29 Thread Daniel Kiper
On Mon, Apr 11, 2022 at 06:40:28AM +, Glenn Washburn wrote: > Signed-off-by: Glenn Washburn Reviewed-by: Daniel Kiper Daniel ___ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel

[RFC PATCH] grub-mkconfig linux: Fix quadratic algorithm for sorting menu items

2022-04-29 Thread Mathieu Desnoyers
The current implementation of the 10_linux script implements its menu items sorting in bash with a quadratic algorithm, calling "sed", "sort", head, and grep to compare versions between individual lines, which is really annoying for kernel developers who can easily end up with 50-100 kernels in /bo

RE: [PATCH V2] Enable TDX measurement to RTMR register

2022-04-29 Thread Lu, Ken
Hi Gerd, Thanks for your comment, make sense! So I will update grub's structure according to Kiper's suggestion! Thanks Ken > -Original Message- > From: Grub-devel On Behalf > Of Gerd Hoffmann > Sent: Friday, April 29, 2022 2:16 PM > To: The development of GNU GRUB > Cc: Xu,