From 566c9926537af5dd1f998735391abb97f31020c0 Mon Sep 17 00:00:00 2001 From: Martin Gracik Date: Mon, 14 Mar 2011 14:07:32 +0100 Subject: [PATCH] Add the xen section to treeinfo on x86_64 --- src/pylorax/images.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/pylorax/images.py b/src/pylorax/images.py index ee8ffe8a..5353622d 100644 --- a/src/pylorax/images.py +++ b/src/pylorax/images.py @@ -522,6 +522,14 @@ class X86(object): data = {"boot.iso": joinpaths(IMAGESDIR, "boot.iso")} self.treeinfo.add_section(section, data) + # create images-xen section on x86_64 + if self.basearch == "x86_64": + section = "images-xen" + data = {"kernel": joinpaths(PXEBOOTDIR, kernel.fname)} + treeinfo.add_section(section, data) + data = {"initrd": joinpaths(PXEBOOTDIR, initrd.fname)} + treeinfo.add_section(section, data) + def create_boot(self, efiboot=None): # define efiargs and efigraft efiargs, efigraft = [], []