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 Development

 
 
LinkBack Thread Tools
 
Old 08-25-2011, 03:01 PM
Matthew Garrett
 
Default lorax: Configure grub with findiso for images without kernels

From: Matthew Garrett <mjg@redhat.com>

If the EFI boot image doesn't contain a kernel then grub needs to find
the appropriate root filesystem that does contain the kernel. The findiso
argument has been added to our grub for this purpose. Add it to grub.confs
that are going to be used in non-kernel EFI images.
---
src/pylorax/__init__.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/pylorax/__init__.py b/src/pylorax/__init__.py
index c3235a4..8d0c1b7 100644
--- a/src/pylorax/__init__.py
+++ b/src/pylorax/__init__.py
@@ -534,6 +534,7 @@ class Lorax(BaseLoraxClass):
include_kernel=True, use_hfs=False):

blessnode = 0
+ findiso = ""

# create the efi tree directory
efitree = tempfile.mkdtemp(prefix="efitree.", dir=self.workdir)
@@ -545,6 +546,7 @@ class Lorax(BaseLoraxClass):
efikernelpath = "/EFI/BOOT/{0}".format(kernel.fname)
efiinitrdpath = "/EFI/BOOT/{0}".format(initrd.fname)
else:
+ findiso = "findiso"
efikernelpath = "/images/pxeboot/{0}".format(kernel.fname)
efiinitrdpath = "/images/pxeboot/{0}".format(initrd.fname)

@@ -559,6 +561,7 @@ class Lorax(BaseLoraxClass):

# edit the grub.conf file
grubconf = joinpaths(efitree, "grub.conf")
+ replace(grubconf, "@FINDISO@", findiso)
replace(grubconf, "@PRODUCT@", self.product)
replace(grubconf, "@VERSION@", self.version)
replace(grubconf, "@KERNELPATH@", efikernelpath)
--
1.7.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 07:01 PM.

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