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:
committed by
Wolfgang Bumiller
parent
57ec06621b
commit
2197ff97dc
@ -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"
|
||||
|
||||
Reference in New Issue
Block a user