From d326ef8df7071d8dc96e318561943e60afec3d5e Mon Sep 17 00:00:00 2001 From: "jkeating@dhcp83-49.boston.redhat.com" <> Date: Fri, 8 Dec 2006 10:57:23 -0500 Subject: [PATCH] Implant md5sums in isos for media check --- pypungi/pungi.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pypungi/pungi.py b/pypungi/pungi.py index 0c07f682..a48c08b2 100755 --- a/pypungi/pungi.py +++ b/pypungi/pungi.py @@ -98,6 +98,7 @@ class Pungi: isoname, os.path.join('%s-disc%s' % (self.topdir, disc)))) os.system('cd %s; sha1sum %s >> SHA1SUM' % (isodir, isoname)) + os.system('/usr/lib/anaconda-runtime/implantisomd5 %s' % os.path.join(isodir, isoname)) if self.config.getint('default', 'discs') > 1: # We've asked for more than one disc, make a DVD image # backup the main .discinfo to use a split one. This is an ugly hack :/ @@ -131,6 +132,7 @@ class Pungi: isoname, self.topdir)) os.system('cd %s; sha1sum %s >> SHA1SUM' % (isodir, isoname)) + os.system('/usr/lib/anaconda-runtime/implantisomd5 %s' % os.path.join(isodir, isoname)) shutil.move(os.path.join(self.config.get('default', 'destdir'), '.discinfo-%s' % self.config.get('default', 'arch')), discinfofile)