grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 0/2] Have LUKS2 cryptomounts be useable with grub-probe


From: Josselin Poiret
Subject: [PATCH 0/2] Have LUKS2 cryptomounts be useable with grub-probe
Date: Thu, 9 Dec 2021 18:38:51 +0100

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]