fix #4849: download-url: allow download and decompression of compressed ISOs

adds information for how to decompress isos.

generates the compressor regex from a list of comression formats (to
avoid redundancy)
extends the download_url wtih the functionality to handley compression
for images

Signed-off-by: Philipp Hufnagl <p.hufnagl@proxmox.com>
This commit is contained in:
Philipp Hufnagl
2023-08-14 16:42:17 +02:00
committed by Wolfgang Bumiller
parent 57ec06621b
commit 2197ff97dc
3 changed files with 21 additions and 2 deletions

View File

@ -1531,6 +1531,12 @@ sub decompressor_info {
lzo => ['lzop', '-d', '-c'],
zst => ['zstd', '-q', '-d', '-c'],
},
iso => {
# zstd seem to be able to handle .gzip fine. Therefore we dont need additional other tool
gz => ['zcat'],
lzo => ['lzop', '-d', '-c'],
zst => ['zstd', '-q', '-d', '-c'],
},
};
die "ERROR: archive format not defined\n"