Add the images-xen section to treeinfo on x86_64

This commit is contained in:
Martin Gracik 2011-03-14 09:51:19 +01:00
parent 213125199d
commit 6e14df3478
1 changed files with 8 additions and 0 deletions

View File

@ -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)