]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2009-11-11 Felix Zielcke <fzielcke@z-51.de>
authorFelix Zielcke <fzielcke@z-51.de>
Wed, 11 Nov 2009 20:10:58 +0000 (21:10 +0100)
committerFelix Zielcke <fzielcke@z-51.de>
Wed, 11 Nov 2009 20:10:58 +0000 (21:10 +0100)
* util/i386/pc/grub-setup.c (setup): Make core.img path relative
to its root.

ChangeLog.mkrelpath
autogen.sh [changed mode: 0644->0755]
gendistlist.sh [changed mode: 0644->0755]
util/i386/pc/grub-setup.c

index 1b7b2b8512072af5f2365c39f0b2d7a9f94c65ea..3cd0d8bd28d5d92b6735fb61eb9ccfeaee987007 100644 (file)
@@ -1,3 +1,8 @@
+2009-11-11  Felix Zielcke  <fzielcke@z-51.de>
+
+       * util/i386/pc/grub-setup.c (setup): Make core.img path relative
+       to its root.
+
 2009-11-04  Felix Zielcke  <fzielcke@z-51.de>
 
        * util/grub-mkconfig_lib.in (bindir): New variable.
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
index c536be0c404a3bae8379f3b249b4448ac9698fe9..0cc4fc5ed625f9841e032c65af815c24bb74744d 100644 (file)
@@ -88,7 +88,7 @@ setup (const char *dir,
        const char *boot_file, const char *core_file,
        const char *root, const char *dest, int must_embed, int force, int fs_probe)
 {
-  char *boot_path, *core_path, *core_path_dev;
+  char *boot_path, *core_path, *core_path_dev, *core_path_dev_full;
   char *boot_img, *core_img;
   size_t boot_size, core_size;
   grub_uint16_t core_sectors;
@@ -426,7 +426,9 @@ unable_to_embed:
 
   /* Make sure that GRUB reads the identical image as the OS.  */
   tmp_img = xmalloc (core_size);
-  core_path_dev = grub_util_get_path (dir, core_file);
+  core_path_dev_full = grub_util_get_path (dir, core_file);
+  core_path_dev = make_system_path_relative_to_its_root (core_path_dev_full);
+  free (core_path_dev_full);
 
   /* It is a Good Thing to sync two times.  */
   sync ();