Fixed the hybrid iso creation
This commit is contained in:
parent
b672d9936e
commit
b92113c801
1
etc/lorax/config.i686
Symbolic link
1
etc/lorax/config.i686
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
config.i386
|
@ -30,11 +30,13 @@ ARCHS64 = ( "x86_64",
|
|||||||
"s390x",
|
"s390x",
|
||||||
"sparc64" )
|
"sparc64" )
|
||||||
|
|
||||||
BASEARCH_MAP = { "i386" : "i386",
|
BASEARCH_MAP = { "i586" : "i386",
|
||||||
"i586" : "i386",
|
"i686" : "i386",
|
||||||
"sparc64" : "sparc" }
|
"sparc64" : "sparc" }
|
||||||
|
|
||||||
EFIARCH_MAP = { "i386" : "IA32",
|
EFIARCH_MAP = { "i386" : "IA32",
|
||||||
|
"i586" : "IA32",
|
||||||
|
"i686" : "IA32",
|
||||||
"x86_64" : "X64",
|
"x86_64" : "X64",
|
||||||
"ia64" : "IA64" }
|
"ia64" : "IA64" }
|
||||||
|
|
||||||
@ -515,15 +517,23 @@ class Lorax(object):
|
|||||||
efiargs = ""
|
efiargs = ""
|
||||||
efigraft = ""
|
efigraft = ""
|
||||||
|
|
||||||
biosargs = "-b isolinux/isolinux.bin -c isolinux/boot.cat" \
|
#biosargs = "-b isolinux/isolinux.bin -c isolinux/boot.cat" \
|
||||||
" -no-emul-boot -boot-load-size 4 -boot-info-table"
|
# " -no-emul-boot -boot-load-size 4 -boot-info-table"
|
||||||
|
|
||||||
cmd = "%s -v -o %s %s %s -R -J -V %s -T -graft-points" \
|
#cmd = "%s -v -o %s %s %s -R -J -V %s -T -graft-points" \
|
||||||
" isolinux=%s images=%s %s" % (self.paths.MKISOFS, bootiso,
|
# " isolinux=%s images=%s %s" % (self.paths.MKISOFS, bootiso,
|
||||||
biosargs, efiargs,
|
# biosargs, efiargs,
|
||||||
self.conf.product,
|
# self.conf.product,
|
||||||
self.conf.isolinuxdir,
|
# self.conf.isolinuxdir,
|
||||||
self.conf.imagesdir, efigraft)
|
# 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)
|
err, output = commands.getstatusoutput(cmd)
|
||||||
if err:
|
if err:
|
||||||
|
@ -63,7 +63,7 @@ class LoraxPaths(singleton.Singleton):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def SYSLINUXDIR(self):
|
def SYSLINUXDIR(self):
|
||||||
return os.path.join(self.installtree, "usr", "lib", "syslinux")
|
return os.path.join(self.installtree, "usr", "share", "syslinux")
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def ISOLINUXBIN(self):
|
def ISOLINUXBIN(self):
|
||||||
|
@ -107,8 +107,11 @@ class EFI(object):
|
|||||||
return None
|
return None
|
||||||
|
|
||||||
# copy the files to the efiboot image
|
# copy the files to the efiboot image
|
||||||
|
dstdir = os.path.join(efibootdir, "EFI", "BOOT")
|
||||||
|
utils.makedirs(dstdir)
|
||||||
|
|
||||||
utils.scopy(src_root=efitreedir, src_path="*",
|
utils.scopy(src_root=efitreedir, src_path="*",
|
||||||
dst_root=efibootdir, dst_path="")
|
dst_root=dstdir, dst_path="")
|
||||||
|
|
||||||
# unmount the efiboot image
|
# unmount the efiboot image
|
||||||
cmd = "umount %s" % efibootdir
|
cmd = "umount %s" % efibootdir
|
||||||
|
@ -60,8 +60,10 @@ class InstallImage(object):
|
|||||||
shutil.copy2(src, dst)
|
shutil.copy2(src, dst)
|
||||||
|
|
||||||
def configure_fedorakmod(self):
|
def configure_fedorakmod(self):
|
||||||
|
if os.path.isfile(self.paths.FEDORAKMODCONF):
|
||||||
utils.replace(self.paths.FEDORAKMODCONF,
|
utils.replace(self.paths.FEDORAKMODCONF,
|
||||||
r"installforallkernels = 0", r"installforallkernels = 1")
|
r"installforallkernels = 0",
|
||||||
|
r"installforallkernels = 1")
|
||||||
|
|
||||||
# XXX why do we need this?
|
# XXX why do we need this?
|
||||||
def copy_bootloaders(self):
|
def copy_bootloaders(self):
|
||||||
|
@ -345,7 +345,7 @@ class Ramdisk(object):
|
|||||||
def create(self):
|
def create(self):
|
||||||
self.prepare()
|
self.prepare()
|
||||||
|
|
||||||
f = getattr(self, "create_%s" % self.conf.arch, None)
|
f = getattr(self, "create_%s" % self.conf.basearch, None)
|
||||||
if f:
|
if f:
|
||||||
return f()
|
return f()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user