From 9f2ea61265c36945b1fbbc27fd70099e58df794d Mon Sep 17 00:00:00 2001 From: Johannes 'josch' Schauer Date: Fri, 29 Nov 2019 08:51:10 +0100 Subject: [PATCH] Fix parallel xz compression --- mmdebstrap | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/mmdebstrap b/mmdebstrap index d4e105d..7a9dc21 100755 --- a/mmdebstrap +++ b/mmdebstrap @@ -161,7 +161,7 @@ sub get_tar_compressor($) { } elsif ($filename =~ /\.lz4$/) { return 'lz4'; } elsif ($filename =~ /\.(xz|txz)$/) { - return 'xz'; + return ('xz', '--threads=0'); } elsif ($filename =~ /\.zst$/) { return 'zstd'; } @@ -2443,11 +2443,6 @@ sub main() { my $exitstatus = 0; my @taropts = ('--sort=name', "--mtime=\@$mtime", '--clamp-mtime', '--numeric-owner', '--one-file-system', '-c', '--exclude=./dev'); - # Use parallel xz compression - if (defined $tar_compressor and $tar_compressor eq 'xz') { - push @taropts, '-Ixz --threads=0' - } - # disable signals so that we can fork and change behaviour of the signal # handler in the parent and child without getting interrupted my $sigset = POSIX::SigSet->new(SIGINT, SIGHUP, SIGPIPE, SIGTERM);