From 46ce415f2b59ea42b0f844f25ba29d35880c90c3 Mon Sep 17 00:00:00 2001 From: Tom "spot" Callaway Date: Thu, 26 May 2011 10:47:19 -0400 Subject: [PATCH] Add isohybrid invocations for boot.iso and the main ISO. --- src/pypungi/__init__.py | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/src/pypungi/__init__.py b/src/pypungi/__init__.py index 7cc7291..acf6d75 100644 --- a/src/pypungi/__init__.py +++ b/src/pypungi/__init__.py @@ -1081,6 +1081,10 @@ class Pungi(pypungi.PungiBase): if not self.config.get('pungi', 'arch') == 'source': pypungi.util._doRunCommand(['/usr/bin/implantisomd5', isofile], self.logger) + # Run isohybrid on the iso + if os.path.exists("/usr/bin/isohybrid"): + subprocess.call(["/usr/bin/isohybrid", isofile]) + # shove the checksum into a file csumfile = os.path.join(self.isodir, '%s-%s-%s-CHECKSUM' % ( self.config.get('pungi', 'iso_basename'), @@ -1106,6 +1110,10 @@ class Pungi(pypungi.PungiBase): # link the boot iso to the iso dir pypungi.util._link(os.path.join(self.topdir, 'images', 'boot.iso'), isofile, self.logger) + # Run isohybrid on boot.iso + if os.path.exists("/usr/bin/isohybrid"): + subprocess.call(["/usr/bin/isohybrid", os.path.join(self.topdir, 'images', 'boot.iso')]) + # shove the checksum into a file self._doIsoChecksum(isofile, csumfile) -- 1.7.5.1