Use [images-xen] section for PAE and xen kernels

This commit is contained in:
Martin Gracik 2011-01-17 16:29:46 +01:00
parent 52b2b136a1
commit b00b0a77c9

View File

@ -407,7 +407,7 @@ class Lorax(BaseLoraxClass):
initrds.append(initrd)
# add kernel and initrd paths to .treeinfo
section = "images{0}".format(suffix or ("-" + self.basearch))
section = "images-{0}".format("xen" if suffix else self.basearch)
data = {"kernel": "images/pxeboot/{0}".format(kernel.fname)}
treeinfo.add_section(section, data)
data = {"initrd": "images/pxeboot/{0}".format(initrd.fname)}