Commit 86902790 authored by Colin Watson's avatar Colin Watson

If GRUB Legacy is still around, tell packaging to ignore it

Bug-Debian: http://bugs.debian.org/586143
Forwarded: not-needed
Last-Update: 2013-12-25

Patch-Name: install_stage2_confusion.patch
parent 40321623
......@@ -42,6 +42,7 @@
#include <grub/emu/config.h>
#include <grub/util/ofpath.h>
#include <grub/hfsplus.h>
#include <grub/emu/hostfile.h>
#include <string.h>
......@@ -1675,6 +1676,19 @@ main (int argc, char *argv[])
grub_util_bios_setup (platdir, "boot.img", "core.img",
install_drive, force,
fs_probe, allow_floppy, add_rs_codes);
/* If vestiges of GRUB Legacy still exist, tell the Debian packaging
that they can ignore them. */
if (!rootdir && grub_util_is_regular ("/boot/grub/stage2") &&
grub_util_is_regular ("/boot/grub/menu.lst"))
{
grub_util_fd_t fd;
fd = grub_util_fd_open ("/boot/grub/grub2-installed",
GRUB_UTIL_FD_O_WRONLY);
grub_util_fd_close (fd);
}
break;
}
case GRUB_INSTALL_PLATFORM_SPARC64_IEEE1275:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment