Use crc32 check when compressing with xz
This commit is contained in:
parent
421e4c3a00
commit
d154f56855
@ -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")
|
||||||
|
Loading…
Reference in New Issue
Block a user