]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* util/grub-mkrescue.c (make_image_fwdisk_abs): Insert all partmap
authorVladimir Serbinenko <phcoder@gmail.com>
Mon, 18 Nov 2013 01:03:36 +0000 (02:03 +0100)
committerVladimir Serbinenko <phcoder@gmail.com>
Mon, 18 Nov 2013 01:03:36 +0000 (02:03 +0100)
modules to be in line with make_image_abs.

ChangeLog
util/grub-mkrescue.c

index cfb9fb30bbc63037184121e7322bb8429a5e75ed..050f0b70d49c6f5ea7bf8c9dd6e64fc081cc44d5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-11-18  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * util/grub-mkrescue.c (make_image_fwdisk_abs): Insert all partmap
+       modules to be in line with make_image_abs.
+
 2013-11-18  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * include/grub/mips/setjmp.h (grub_jmp_buf): Fix buffer size.
index df55f3dcf1024e148e689618862f10128cb0155f..3b6b742bb0de1e6c33556aa15e61100abd1f26e9 100644 (file)
@@ -290,12 +290,24 @@ make_image_fwdisk_abs (enum grub_install_plat plat,
                       const char *mkimage_target,
                       const char *output)
 {
+  char *load_cfg;
+  FILE *load_cfg_f;
+
   if (!source_dirs[plat])
     return;
 
+  grub_util_info (N_("enabling %s support ..."),
+                 mkimage_target);
+
+  load_cfg = grub_util_make_temporary_file ();
+
+  load_cfg_f = grub_util_fopen (load_cfg, "wb");
+  write_part (load_cfg_f, source_dirs[plat]);
+  fclose (load_cfg_f);
+
   grub_install_push_module ("iso9660");
   grub_install_make_image_wrap (source_dirs[plat], "()/boot/grub", output,
-                               0, 0, mkimage_target, 0,
+                               0, load_cfg, mkimage_target, 0,
                                GRUB_COMPRESSION_AUTO);
   grub_install_pop_module ();
 }