Make sure we always have the images-xen section for x86.
The x86 architecture requires that we have the images-xen section in .treeinfo even if we have no xen kernel.
This commit is contained in:
parent
38b6fce4e5
commit
6efaa3365c
@ -211,6 +211,13 @@ class Lorax(BaseLoraxClass):
|
|||||||
"initrd": "images/pxeboot/{0}".format(initrdfile)}
|
"initrd": "images/pxeboot/{0}".format(initrdfile)}
|
||||||
self.treeinfo_add_section(self.conf.treeinfo, section, data)
|
self.treeinfo_add_section(self.conf.treeinfo, section, data)
|
||||||
|
|
||||||
|
if self.conf.basearch == "i386":
|
||||||
|
# add the xen section for x86
|
||||||
|
section = "images-xen"
|
||||||
|
data = {"kernel": "images/pxeboot/{0}".format(kernelfile),
|
||||||
|
"initrd": "images/pxeboot/{0}".format(initrdfile)}
|
||||||
|
self.treeinfo_add_section(self.conf.treeinfo, section, data)
|
||||||
|
|
||||||
# copy the kernel and initrd image to the isolinux directory
|
# copy the kernel and initrd image to the isolinux directory
|
||||||
kdst = os.path.join(self.conf.isodir, kernelfile)
|
kdst = os.path.join(self.conf.isodir, kernelfile)
|
||||||
idst = os.path.join(self.conf.isodir, initrdfile)
|
idst = os.path.join(self.conf.isodir, initrdfile)
|
||||||
|
Loading…
Reference in New Issue
Block a user