source: grub-pc/trunk/fuentes/debian/patches/grub-install-pvxen-paths.patch @ 22

Last change on this file since 22 was 22, checked in by mabarracus, 4 years ago

updated version and apply net.ifnames=0 into debian/rules

File size: 2.3 KB
  • util/grub-install.c

    From b9b6bc8b66532577167fe464cd9dbcbebead0748 Mon Sep 17 00:00:00 2001
    From: Ian Campbell <ijc@hellion.org.uk>
    Date: Sat, 6 Sep 2014 12:20:12 +0100
    Subject: grub-install: Install PV Xen binaries into the upstream specified
     path
    
    Upstream have defined a specification for where guests ought to place their
    xenpv grub binaries in order to facilitate chainloading from a stage 1 grub
    loaded from dom0.
    
    http://xenbits.xen.org/docs/unstable-staging/misc/x86-xenpv-bootloader.html
    
    The spec calls for installation into /boot/xen/pvboot-i386.elf or
    /boot/xen/pvboot-x86_64.elf.
    
    Signed-off-by: Ian Campbell <ijc@hellion.org.uk>
    
    Bug-Debian: https://bugs.debian.org/762307
    Forwarded: http://lists.gnu.org/archive/html/grub-devel/2014-10/msg00041.html
    Last-Update: 2014-10-24
    
    Patch-Name: grub-install-pvxen-paths.patch
    
    ---
    v2: Respect bootdir, create /boot/xen as needed.
    ---
     util/grub-install.c | 24 ++++++++++++++++++++++--
     1 file changed, 22 insertions(+), 2 deletions(-)
    
    diff --git a/util/grub-install.c b/util/grub-install.c
    index 92d92a5..b1db51e 100644
    a b main (int argc, char *argv[]) 
    19801980        }
    19811981      break;
    19821982
     1983    case GRUB_INSTALL_PLATFORM_I386_XEN:
     1984      {
     1985        char *path = grub_util_path_concat (2, bootdir, "xen");
     1986        char *dst = grub_util_path_concat (2, path, "pvboot-i386.elf");
     1987        grub_install_mkdir_p (path);
     1988        grub_install_copy_file (imgfile, dst, 1);
     1989        free (dst);
     1990        free (path);
     1991      }
     1992      break;
     1993
     1994    case GRUB_INSTALL_PLATFORM_X86_64_XEN:
     1995      {
     1996        char *path = grub_util_path_concat (2, bootdir, "xen");
     1997        char *dst = grub_util_path_concat (2, path, "pvboot-x86_64.elf");
     1998        grub_install_mkdir_p (path);
     1999        grub_install_copy_file (imgfile, dst, 1);
     2000        free (dst);
     2001        free (path);
     2002      }
     2003      break;
     2004
    19832005    case GRUB_INSTALL_PLATFORM_MIPSEL_LOONGSON:
    19842006    case GRUB_INSTALL_PLATFORM_MIPSEL_QEMU_MIPS:
    19852007    case GRUB_INSTALL_PLATFORM_MIPS_QEMU_MIPS:
    main (int argc, char *argv[]) 
    19882010    case GRUB_INSTALL_PLATFORM_MIPSEL_ARC:
    19892011    case GRUB_INSTALL_PLATFORM_ARM_UBOOT:
    19902012    case GRUB_INSTALL_PLATFORM_I386_QEMU:
    1991     case GRUB_INSTALL_PLATFORM_I386_XEN:
    1992     case GRUB_INSTALL_PLATFORM_X86_64_XEN:
    19932013      grub_util_warn ("%s",
    19942014                      _("WARNING: no platform-specific install was performed"));
    19952015      break;
Note: See TracBrowser for help on using the repository browser.