From 0e6ea6be85e691641217c2d564beb46d38db511e Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Mon, 22 Sep 2014 15:32:00 -0700 Subject: [PATCH] RHEL7 doesn't include pigz or pbzip2 (#1144140) Don't try to speed up gzip or bzip2 compression with them. Related: rhbz#1144140 --- src/pylorax/imgutils.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/pylorax/imgutils.py b/src/pylorax/imgutils.py index 91fd73c2..f122b02e 100644 --- a/src/pylorax/imgutils.py +++ b/src/pylorax/imgutils.py @@ -50,12 +50,6 @@ def compress(command, rootdir, outfile, compression="xz", compressargs=["-9"]): # make compression run with multiple threads if possible if compression in ("xz", "lzma"): compressargs.insert(0, "-T%d" % multiprocessing.cpu_count()) - elif compression == "gzip": - compression = "pigz" - compressargs.insert(0, "-p%d" % multiprocessing.cpu_count()) - elif compression == "bzip2": - compression = "pbzip2" - compressargs.insert(0, "-p%d" % multiprocessing.cpu_count()) logger.debug("find %s -print0 |%s | %s %s > %s", rootdir, " ".join(command), compression, " ".join(compressargs), outfile)