mkarchiso: support compressing the bootstrap tarball with xz
Despite usually preferring it, I somehow forgot about xz in
3b3984b484
("mkarchiso: implement configurable bootstrap tarball compression")
This commit is contained in:
parent
bf1c7ff041
commit
bc9a91fe73
2 changed files with 4 additions and 1 deletions
|
@ -8,6 +8,8 @@ Changelog
|
||||||
Added
|
Added
|
||||||
-----
|
-----
|
||||||
|
|
||||||
|
- Support compressing the bootstrap tarball with ``xz``.
|
||||||
|
|
||||||
Changed
|
Changed
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
|
|
@ -1387,7 +1387,7 @@ _validate_requirements_buildmode_bootstrap() {
|
||||||
# Check if the compressor is installed
|
# Check if the compressor is installed
|
||||||
if (( ${#bootstrap_tarball_compression[@]} )); then
|
if (( ${#bootstrap_tarball_compression[@]} )); then
|
||||||
case "${bootstrap_tarball_compression[0]}" in
|
case "${bootstrap_tarball_compression[0]}" in
|
||||||
'bzip'|'gzip'|'lrzip'|'lzip'|'lzop'|'zstd'|'zstdmt')
|
'bzip'|'gzip'|'lrzip'|'lzip'|'lzop'|'xz'|'zstd'|'zstdmt')
|
||||||
if ! command -v "${bootstrap_tarball_compression[0]}" &>/dev/null; then
|
if ! command -v "${bootstrap_tarball_compression[0]}" &>/dev/null; then
|
||||||
(( validation_error=validation_error+1 ))
|
(( validation_error=validation_error+1 ))
|
||||||
_msg_error "Validating build mode '${_buildmode}': '${bootstrap_tarball_compression[0]}' is not available on this host. Install '${bootstrap_tarball_compression[0]/zstdmt/zstd}'!" 0
|
_msg_error "Validating build mode '${_buildmode}': '${bootstrap_tarball_compression[0]}' is not available on this host. Install '${bootstrap_tarball_compression[0]/zstdmt/zstd}'!" 0
|
||||||
|
@ -2025,6 +2025,7 @@ _build_buildmode_bootstrap() {
|
||||||
'lrzip') image_name="${image_name}.lrz" ;;
|
'lrzip') image_name="${image_name}.lrz" ;;
|
||||||
'lzip') image_name="${image_name}.lz" ;;
|
'lzip') image_name="${image_name}.lz" ;;
|
||||||
'lzop') image_name="${image_name}.lzo" ;;
|
'lzop') image_name="${image_name}.lzo" ;;
|
||||||
|
'xz') image_name="${image_name}.xz" ;;
|
||||||
'zstd'|'zstdmt') image_name="${image_name}.zst" ;;
|
'zstd'|'zstdmt') image_name="${image_name}.zst" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue