1
Index: b/util/grub-setup.c
2
===================================================================
3
--- a/util/grub-setup.c
4
+++ b/util/grub-setup.c
7
#define DEFAULT_BOOT_FILE "boot.img"
8
#define DEFAULT_CORE_FILE "core.img"
9
+#define CORE_IMG_IN_FS "setup_left_core_image_in_filesystem"
11
#ifdef GRUB_MACHINE_SPARC64
12
#define grub_target_to_host16(x) grub_be_to_cpu16(x)
17
+ unlink (DEFAULT_DIRECTORY "/" CORE_IMG_IN_FS);
23
/* The core image must be put on a filesystem unfortunately. */
24
grub_util_info ("will leave the core image on the filesystem");
26
+ fp = fopen (DEFAULT_DIRECTORY "/" CORE_IMG_IN_FS, "w");
29
/* Make sure that GRUB reads the identical image as the OS. */
30
tmp_img = xmalloc (core_size);
31
core_path_dev_full = grub_util_get_path (dir, core_file);