From: Pete Batard Date: Fri, 25 Nov 2022 17:22:15 +0000 (+0000) Subject: util/grub-mkrescue: Add support for FAT and NTFS on EFI boot X-Git-Tag: grub-2.12-rc1~188 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c567d896604b7106d4363223300635628a6a15e8;p=thirdparty%2Fgrub.git util/grub-mkrescue: Add support for FAT and NTFS on EFI boot In order to add file system transposition support for UEFI, i.e. the ability to copy the content of an grub-mkrescue ISO 9660 image onto user-formatted media, and have that boot on UEFI systems, the first thing we need to do is add support for the file systems that are natively handled by UEFI. This mandatorily includes FAT, but we also include NTFS as the latter is also commonly supported on modern x64 platforms. Signed-off-by: Pete Batard Reviewed-by: Daniel Kiper --- diff --git a/util/grub-mkrescue.c b/util/grub-mkrescue.c index ba89b1394..59a0b5db4 100644 --- a/util/grub-mkrescue.c +++ b/util/grub-mkrescue.c @@ -754,6 +754,9 @@ main (int argc, char *argv[]) grub_install_push_module ("part_gpt"); grub_install_push_module ("part_msdos"); + grub_install_push_module ("fat"); + /* Many modern UEFI systems also have native support for NTFS. */ + grub_install_push_module ("ntfs"); imgname = grub_util_path_concat (2, efidir_efi_boot, "bootia64.efi"); make_image_fwdisk_abs (GRUB_INSTALL_PLATFORM_IA64_EFI, "ia64-efi", imgname); @@ -831,6 +834,8 @@ main (int argc, char *argv[]) free (efidir); grub_install_pop_module (); grub_install_pop_module (); + grub_install_pop_module (); + grub_install_pop_module (); } grub_install_push_module ("part_apple");