Use crc32 check when compressing with xz

This commit is contained in:
Martin Gracik 2011-04-27 13:56:47 +02:00
parent 421e4c3a00
commit d154f56855

View File

@ -521,7 +521,11 @@ class LoraxInstallTree(BaseLoraxClass):
stdin=find.stdout, stdout=subprocess.PIPE, stdin=find.stdout, stdout=subprocess.PIPE,
preexec_fn=chdir) preexec_fn=chdir)
compressed = subprocess.Popen([type, "-%s" % speed], stdin=cpio.stdout, cmd = [type, "-%s" % speed]
if type == "xz":
cmd.append("--check=crc32")
compressed = subprocess.Popen(cmd, stdin=cpio.stdout,
stdout=open(initrd.fpath, "wb")) stdout=open(initrd.fpath, "wb"))
logger.debug("compressing") logger.debug("compressing")