From 6e14df3478c0a0324f0d969dda68493ee71c229e Mon Sep 17 00:00:00 2001 From: Martin Gracik Date: Mon, 14 Mar 2011 09:51:19 +0100 Subject: [PATCH] Add the images-xen section to treeinfo on x86_64 --- src/pylorax/__init__.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/pylorax/__init__.py b/src/pylorax/__init__.py index 1c947c92..1ce411c8 100644 --- a/src/pylorax/__init__.py +++ b/src/pylorax/__init__.py @@ -429,6 +429,14 @@ class Lorax(BaseLoraxClass): data = {"initrd": "images/pxeboot/{0}".format(initrd.fname)} treeinfo.add_section(section, data) + # we need to have a xen section for x86_64 + if self.basearch == "x86_64": + section = "images-xen" + data = {"kernel": "images/pxeboot/{0}".format(kernel.fname)} + treeinfo.add_section(section, data) + data = {"initrd": "images/pxeboot/{0}".format(initrd.fname)} + treeinfo.add_section(section, data) + # copy initrds to outputtree shutil.copy2(initrds[0].fpath, self.outputtree.isolinuxdir)