FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Marketing

 
 
LinkBack Thread Tools
 
Old 02-25-2010, 01:19 PM
Martin Gracik
 
Default 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.
---
src/pylorax/__init__.py | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/src/pylorax/__init__.py b/src/pylorax/__init__.py
index 006f207..a588a33 100644
--- a/src/pylorax/__init__.py
+++ b/src/pylorax/__init__.py
@@ -211,6 +211,13 @@ class Lorax(BaseLoraxClass):
"initrd": "images/pxeboot/{0}".format(initrdfile)}
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
kdst = os.path.join(self.conf.isodir, kernelfile)
idst = os.path.join(self.conf.isodir, initrdfile)
--
1.6.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 12:40 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org