]> git.ipfire.org Git - thirdparty/grub.git/commit
util/grub-mkrescue: Search by file UUID rather than partition UUID for EFI boot
authorPete Batard <pete@akeo.ie>
Fri, 25 Nov 2022 17:22:17 +0000 (17:22 +0000)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 10 Jan 2023 14:45:57 +0000 (15:45 +0100)
commitb7ec14c886459001e2932b70eedfbea1e543bd51
tree41590682536685401fc09ff2a3a6a931840806ce
parenta41fafd3ce23b22248083a57eeeff4d115077ae6
util/grub-mkrescue: Search by file UUID rather than partition UUID for EFI boot

The final piece needed to add UEFI file system transposition support is to
ensure the boot media can be located regardless of how the boot partition
was instantiated. Especially, we do not want to be reliant on brittle
partition UUIDs, as these only work if a boot media is duplicated at the
block level and not at the file system level.

To accomplish this for EFI boot, we now create a UUID file in a .disk/
directory, that can then be searched for.

Note: The switch from make_image_fwdisk_abs() to make_image_abs() is
needed in order to use the search functionality.

Signed-off-by: Pete Batard <pete@akeo.ie>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
util/grub-mkrescue.c