]> git.ipfire.org Git - thirdparty/grub.git/commit
disk/cryptodisk: Add support for LUKS2 in (proc)/luks_script
authorGlenn Washburn <development@efficientek.com>
Fri, 14 Jul 2023 20:49:18 +0000 (15:49 -0500)
committerDaniel Kiper <daniel.kiper@oracle.com>
Thu, 12 Oct 2023 15:42:20 +0000 (17:42 +0200)
commit95963d97f8d87f209e2032283c79912e19b1de82
treecf2d6661223b11c13c40e3ba5f0343be362a340e
parent016f1425776afdb02601b193ada8f0b5cf983e46
disk/cryptodisk: Add support for LUKS2 in (proc)/luks_script

The sector size in bytes is added to each line and it is allowed to be
6 decimal digits long, which covers the most common cases of 512 and 4096
byte sectors with space for two additional digits as future-proofing. The
size allocation is updated to reflect this additional field. Also make
clearer the size allocation calculation.

Signed-off-by: Glenn Washburn <development@efficientek.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/disk/cryptodisk.c