[createiso] Add back running isohybrid on x86 disk images

rhbz#1331317 when we refactored how we make dvds in
df400002d8 we lost the ability to boot
the dvd as a disk image.

Signed-off-by: Dennis Gilmore <dennis@ausil.us>
This commit is contained in:
Dennis Gilmore 2016-04-28 16:27:19 -05:00 committed by Lubomír Sedlář
parent b949bfd615
commit 5c4d3a5196
3 changed files with 60 additions and 2 deletions

View file

@ -45,6 +45,15 @@ def implant_md5(iso, opts):
shortcuts.run(cmd, stdout=True, show_cmd=True, workdir=opts.output_dir)
def run_isohybrid(iso, opts):
"""If the image is bootable, it needs to include an MBR or GPT so that it
can actually be booted. This is done by running isohybrid on the image.
"""
if opts.buildinstall_method and opts.arch in ["x86_64", "i386"]:
cmd = iso.get_isohybrid_cmd(opts.iso_name, opts.arch)
shortcuts.run(cmd, stdout=True, show_cmd=True, workdir=opts.output_dir)
def make_manifest(iso, opts):
shortcuts.run(iso.get_manifest_cmd(opts.iso_name), stdout=True,
show_cmd=True, workdir=opts.output_dir)
@ -68,6 +77,7 @@ def make_jigdo(opts):
def run(opts):
iso = IsoWrapper()
make_image(iso, opts)
run_isohybrid(iso, opts)
implant_md5(iso, opts)
make_manifest(iso, opts)
if opts.jigdo_dir: