[lorax] Use crc32 check when compressing with xz

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 src/pylorax/installtree.py |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/src/pylorax/installtree.py b/src/pylorax/installtree.py
index f7502eb..13ae6f1 100644
--- a/src/pylorax/installtree.py
+++ b/src/pylorax/installtree.py
@@ -521,7 +521,11 @@ class LoraxInstallTree(BaseLoraxClass):
                                 stdin=find.stdout, stdout=subprocess.PIPE,
                                 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"))
 
         logger.debug("compressing")
-- 
1.7.3.2

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux