forked from josch/mmdebstrap
do not run xz and zstd with --threads=0
There are now systems with 160 cores (debci runs on two Ampere Altra ARMv8 Neoverse-N1), which makes xz fail with: "xz: (stdin): Cannot allocate memory"
This commit is contained in:
parent
932a3716bc
commit
28cb757742
1 changed files with 5 additions and 5 deletions
10
mmdebstrap
10
mmdebstrap
|
@ -244,9 +244,9 @@ sub get_tar_compressor {
|
|||
} elsif ($filename =~ /\.lz4$/) {
|
||||
return ['lz4'];
|
||||
} elsif ($filename =~ /\.(xz|txz)$/) {
|
||||
return ['xz', '--threads=0'];
|
||||
return ['xz'];
|
||||
} elsif ($filename =~ /\.zst$/) {
|
||||
return ['zstd', '--threads=0'];
|
||||
return ['zstd'];
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
@ -7135,9 +7135,9 @@ extension to compressor applies:
|
|||
.tlz lzma
|
||||
.lzo lzop
|
||||
.lz4 lz4
|
||||
.xz xz --threads=0
|
||||
.txz xz --threads=0
|
||||
.zst zstd --threads=0
|
||||
.xz xz
|
||||
.txz xz
|
||||
.zst zstd
|
||||
|
||||
To change compression specific options, either use the respecitve environment
|
||||
variables like B<XZ_OPT> or send B<mmdebstrap> output to your compressor of
|
||||
|
|
Loading…
Reference in a new issue