Add implantisomd5 execution

This commit is contained in:
Martin Gracik 2010-11-08 16:50:59 +01:00
parent 85c91cf6b2
commit c7b4ec9df5
2 changed files with 10 additions and 1 deletions

View File

@ -22,7 +22,10 @@
# set up logging # set up logging
import logging import logging
logging.basicConfig(level=logging.DEBUG, filename="pylorax.log", filemode="w")
fh = logging.FileHandler(filename="pylorax.log", mode="w")
fh.setLevel(logging.DEBUG)
logging.getLogger("").addHandler(fh)
sh = logging.StreamHandler() sh = logging.StreamHandler()
sh.setLevel(logging.INFO) sh.setLevel(logging.INFO)
@ -687,6 +690,11 @@ class Lorax(BaseLoraxClass):
p = subprocess.Popen(cmd, stdout=subprocess.PIPE) p = subprocess.Popen(cmd, stdout=subprocess.PIPE)
rc = p.wait() rc = p.wait()
# implant iso md5
cmd = [self.lcmds.IMPLANTISOMD5, bootiso]
p = subprocess.Popen(cmd, stdout=subprocess.PIPE)
rc = p.wait()
return bootiso return bootiso

View File

@ -36,6 +36,7 @@ class LoraxRequiredCommands(dict):
self["DMSETUP"] = "dmsetup" self["DMSETUP"] = "dmsetup"
self["FIND"] = "find" self["FIND"] = "find"
self["GCONFTOOL"] = "gconftool-2" self["GCONFTOOL"] = "gconftool-2"
self["IMPLANTISOMD5"] = "implantisomd5"
self["ISOHYBRID"] = "isohybrid" self["ISOHYBRID"] = "isohybrid"
self["LDCONFIG"] = "ldconfig" self["LDCONFIG"] = "ldconfig"
self["LOCALEDEF"] = "localedef" self["LOCALEDEF"] = "localedef"