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$/) {
|
} elsif ($filename =~ /\.lz4$/) {
|
||||||
return ['lz4'];
|
return ['lz4'];
|
||||||
} elsif ($filename =~ /\.(xz|txz)$/) {
|
} elsif ($filename =~ /\.(xz|txz)$/) {
|
||||||
return ['xz', '--threads=0'];
|
return ['xz'];
|
||||||
} elsif ($filename =~ /\.zst$/) {
|
} elsif ($filename =~ /\.zst$/) {
|
||||||
return ['zstd', '--threads=0'];
|
return ['zstd'];
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -7135,9 +7135,9 @@ extension to compressor applies:
|
||||||
.tlz lzma
|
.tlz lzma
|
||||||
.lzo lzop
|
.lzo lzop
|
||||||
.lz4 lz4
|
.lz4 lz4
|
||||||
.xz xz --threads=0
|
.xz xz
|
||||||
.txz xz --threads=0
|
.txz xz
|
||||||
.zst zstd --threads=0
|
.zst zstd
|
||||||
|
|
||||||
To change compression specific options, either use the respecitve environment
|
To change compression specific options, either use the respecitve environment
|
||||||
variables like B<XZ_OPT> or send B<mmdebstrap> output to your compressor of
|
variables like B<XZ_OPT> or send B<mmdebstrap> output to your compressor of
|
||||||
|
|
Loading…
Reference in a new issue