* util/grub-mkrescue.c (make_image_fwdisk_abs): Insert all partmap

modules to be in line with make_image_abs.
This commit is contained in:
Vladimir Serbinenko 2013-11-18 02:03:36 +01:00
parent 44ce3a93b6
commit 4336b5d85e
2 changed files with 18 additions and 1 deletions

View file

@ -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.

View 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 ();
}