ouuid/be6f4e00637148a9a40453fe9cb7f0a5)
Signed-off-by: Pierre-Louis Bonicoli
---
grub-core/osdep/devmapper/getroot.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/grub-core/osdep/devmapper/getroot.c
b/grub-core/osdep/devmapper/getroot.c
index 9ba5c9865..96781714c 100644
--- a/grub-core/
to migrate from LUKS1 to LUKS2:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1000948
Pierre-Louis Bonicoli (3):
grub-fs-tester: add luks1 and luks2 support
commands/probe: improve support of LUKS2 devices
grub-core/kern/disk.c: handle LUKS2 devices
grub-core/kern/disk.c
odisk_uuid
f353c0f04a6a4c08bc53a0896130910f
Signed-off-by: Pierre-Louis Bonicoli
---
grub-core/kern/disk.c | 4 +++-
grub-core/osdep/devmapper/getroot.c | 3 ++-
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/grub-core/kern/disk.c b/grub-core/kern/disk.c
index e1b0e073e.
The logical sector size used by LUKS1 is 512 bytes. LUKS2 uses 512 to
4069 bytes.
Signed-off-by: Pierre-Louis Bonicoli
---
tests/util/grub-fs-tester.in | 58 ++--
1 file changed, 55 insertions(+), 3 deletions(-)
diff --git a/tests/util/grub-fs-tester.in b/tests
Unlike LUKS1, the sector size of LUKS2 devices isn't hardcoded.
Regarding the probe command, the following values of --target switch
are affected: abstraction, arc_hints, baremetal_hints, bios_hints,
cryptodisk_uuid, drive, efi_hints, hints_string, ieee1275_hints,
zero_check.
For example using th
The logical sector size used by LUKS1 is 512 bytes. LUKS2 uses 512 to
4069 bytes.
---
.gitignore | 2 ++
Makefile.util.def| 12 ++
tests/luks2_test.in | 23 ++
tests/luks_test.in | 23 ++
tests/util/grub-fs-t
nfigure && make
$ make luks_test luks2_test
$ sudo ./luks_test
$ sudo ./luks2_test
Pierre-Louis Bonicoli (3):
grub-fs-tester: add luks1 and luks2 support
commands/probe: improve support of LUKS2 devices
grub-core/kern/disk.c: handle LUKS2 devices
.gitignore
The --target=drive option of the probe command doesn't handle LUKS2
devices:
# dd if=/dev/zero of=data count=10 bs=1M
# losetup --show -f data
/dev/loop4
# echo -n pass | cryptsetup luksFormat -v --type luks2 /dev/loop4
Key slot 0 created.
Command successful.
# echo -n pass | cryptse
On 14/04/2022 18.11, Daniel Kiper wrote:
Adding Glenn and Patrick...
Pierre-Louis, may I ask you to CC both of them next time?
Yes, of course :) !
--
Pierre-Louis
___
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo
On 15/06/2022 20.30, Glenn Washburn wrote:
From: Pierre-Louis Bonicoli
The logical sector size used by LUKS1 is 512 bytes and LUKS2 uses 512 to
4069 bytes. The deafualt password used is "pass", but can be overridden
by setting the PASS environment variable. The device mapper name is
10 matches
Mail list logo