]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
util/grub-mkrescue.c: Always include part_msdos and part_gpt on EFI.
authorVladimir Serbinenko <phcoder@gmail.com>
Sat, 24 Jan 2015 16:45:16 +0000 (17:45 +0100)
committerVladimir Serbinenko <phcoder@gmail.com>
Sat, 24 Jan 2015 16:45:16 +0000 (17:45 +0100)
When booted from stick, EFI would use GPT partition and our root
device detection algortihm depends on GRUB's ability to see the same
partitions. Hence include msdos and gpt partmap modules on EFI even when
they're not needed to access root filesystem.

util/grub-mkrescue.c

index e719839820bb3ad8918b7c6bed4260316cf4b05a..e02340f06f0000381686429665b42a7f87fad2a5 100644 (file)
@@ -653,6 +653,9 @@ main (int argc, char *argv[])
       char *efiimgfat;
       grub_install_mkdir_p (efidir_efi_boot);
 
+      grub_install_push_module ("part_gpt");
+      grub_install_push_module ("part_msdos");
+
       imgname = grub_util_path_concat (2, efidir_efi_boot, "bootia64.efi");
       make_image_fwdisk_abs (GRUB_INSTALL_PLATFORM_IA64_EFI, "ia64-efi", imgname);
       free (imgname);
@@ -713,6 +716,8 @@ main (int argc, char *argv[])
       free (efiimgfat);
       free (efidir_efi);
       free (efidir);
+      grub_install_pop_module ();
+      grub_install_pop_module ();
     }
 
   grub_install_push_module ("part_apple");