Fixed the hybrid iso creation

This commit is contained in:
Martin Gracik 2009-12-17 17:53:47 +01:00
parent b672d9936e
commit b92113c801
6 changed files with 31 additions and 15 deletions

1
etc/lorax/config.i686 Symbolic link
View File

@ -0,0 +1 @@
config.i386

View File

@ -30,11 +30,13 @@ ARCHS64 = ( "x86_64",
"s390x",
"sparc64" )
BASEARCH_MAP = { "i386" : "i386",
"i586" : "i386",
BASEARCH_MAP = { "i586" : "i386",
"i686" : "i386",
"sparc64" : "sparc" }
EFIARCH_MAP = { "i386" : "IA32",
"i586" : "IA32",
"i686" : "IA32",
"x86_64" : "X64",
"ia64" : "IA64" }
@ -515,15 +517,23 @@ class Lorax(object):
efiargs = ""
efigraft = ""
biosargs = "-b isolinux/isolinux.bin -c isolinux/boot.cat" \
" -no-emul-boot -boot-load-size 4 -boot-info-table"
#biosargs = "-b isolinux/isolinux.bin -c isolinux/boot.cat" \
# " -no-emul-boot -boot-load-size 4 -boot-info-table"
cmd = "%s -v -o %s %s %s -R -J -V %s -T -graft-points" \
" isolinux=%s images=%s %s" % (self.paths.MKISOFS, bootiso,
biosargs, efiargs,
self.conf.product,
self.conf.isolinuxdir,
self.conf.imagesdir, efigraft)
#cmd = "%s -v -o %s %s %s -R -J -V %s -T -graft-points" \
# " isolinux=%s images=%s %s" % (self.paths.MKISOFS, bootiso,
# biosargs, efiargs,
# self.conf.product,
# self.conf.isolinuxdir,
# self.conf.imagesdir, efigraft)
cmd = "%s -U -A %s -V %s -volset %s -J -joliet-long -r -v -T -o %s" \
" -b isolinux/isolinux.bin -c isolinux/boot.cat" \
" -no-emul-boot -boot-load-size 4 -boot-info-table" \
" %s -graft-points isolinux=%s images=%s %s" \
% (self.paths.MKISOFS, self.conf.product, self.conf.product,
self.conf.product, bootiso, efiargs,
self.conf.isolinuxdir, self.conf.imagesdir, efigraft)
err, output = commands.getstatusoutput(cmd)
if err:

View File

@ -63,7 +63,7 @@ class LoraxPaths(singleton.Singleton):
@property
def SYSLINUXDIR(self):
return os.path.join(self.installtree, "usr", "lib", "syslinux")
return os.path.join(self.installtree, "usr", "share", "syslinux")
@property
def ISOLINUXBIN(self):

View File

@ -107,8 +107,11 @@ class EFI(object):
return None
# copy the files to the efiboot image
dstdir = os.path.join(efibootdir, "EFI", "BOOT")
utils.makedirs(dstdir)
utils.scopy(src_root=efitreedir, src_path="*",
dst_root=efibootdir, dst_path="")
dst_root=dstdir, dst_path="")
# unmount the efiboot image
cmd = "umount %s" % efibootdir

View File

@ -60,8 +60,10 @@ class InstallImage(object):
shutil.copy2(src, dst)
def configure_fedorakmod(self):
utils.replace(self.paths.FEDORAKMODCONF,
r"installforallkernels = 0", r"installforallkernels = 1")
if os.path.isfile(self.paths.FEDORAKMODCONF):
utils.replace(self.paths.FEDORAKMODCONF,
r"installforallkernels = 0",
r"installforallkernels = 1")
# XXX why do we need this?
def copy_bootloaders(self):

View File

@ -345,7 +345,7 @@ class Ramdisk(object):
def create(self):
self.prepare()
f = getattr(self, "create_%s" % self.conf.arch, None)
f = getattr(self, "create_%s" % self.conf.basearch, None)
if f:
return f()