Hello, These two draft patches make devmapper set up LUKS2 cryptomount properties when pulling, as well as report LUKS2 cryptomounts as having GRUB_DEV_ABSTRACTION_LUKS. This makes grub-probe and grub-install behave properly wrt. LUKS2 drives: `grub-probe -t abstraction /` reports all the needed modules for the GRUB image, and grub-install leads to a working GRUB without manually adding modules.
One small part that I am unsure about, although I have tested it and it does seem to work properly: if I understand correctly, all dm devices have a 512 sector size, however LUKS2 lets one choose up to 4096 for the encryption sector size. Which of these two should be used as cryptodisk->sector_size? I put 512 here since we're reading through a cheated mount, but I'm not so sure. Best, Josselin Poiret Josselin Poiret (2): devmapper/getroot: Have devmapper recognize LUKS2 devmapper/getroot: Set up cheated LUKS2 cryptodisk mount from DM parameters grub-core/osdep/devmapper/getroot.c | 59 ++++++++++++++++++++++++++--- 1 file changed, 54 insertions(+), 5 deletions(-) -- 2.34.0 _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel