mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-07 21:16:57 +02:00
Rename zstd to zst
Rename sztd to zst and amend the changelog. The zstd binary generates a compressed file with the .zst extension by default. Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
This commit is contained in:
parent
71e4f1c660
commit
e88f12c69c
@ -41,7 +41,7 @@ DEFINE_string sign "" \
|
|||||||
DEFINE_string sign_digests "" \
|
DEFINE_string sign_digests "" \
|
||||||
"Sign image DIGESTS files with the given GPG key."
|
"Sign image DIGESTS files with the given GPG key."
|
||||||
DEFINE_string image_compression_formats "${DEFAULT_IMAGE_COMPRESSION_FORMAT}" \
|
DEFINE_string image_compression_formats "${DEFAULT_IMAGE_COMPRESSION_FORMAT}" \
|
||||||
"Compress the resulting images using thise formats. This option acceps a list of comma separated values. Options are: none, bz2, gz, zip, zstd"
|
"Compress the resulting images using thise formats. This option acceps a list of comma separated values. Options are: none, bz2, gz, zip, zst"
|
||||||
|
|
||||||
|
|
||||||
compress_file() {
|
compress_file() {
|
||||||
@ -65,8 +65,8 @@ compress_file() {
|
|||||||
"zip")
|
"zip")
|
||||||
IMAGE_ZIPPER="pigz --keep --zip"
|
IMAGE_ZIPPER="pigz --keep --zip"
|
||||||
;;
|
;;
|
||||||
"zstd")
|
"zst")
|
||||||
IMAGE_ZIPPER="zstd --format=zstd -k -q -f --no-progress -o ${filepath}.${compression_format}"
|
IMAGE_ZIPPER="zstd --format=zstd -k -q --no-progress"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
die "Unsupported compression format ${compression_format}"
|
die "Unsupported compression format ${compression_format}"
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
- OpenStack: In addition to the `bz2` image, a `gz` compressed image is published. This allows Glance to directly consume the images by simply passing in the URL of the image.
|
- OpenStack: In addition to the `bz2` image, a `gz` compressed image is published. This allows Glance to directly consume the images by simply passing in the URL of the image.
|
||||||
- SDK: The image compression format is now configurable. Supported formats are: `bz2`, `gz`, `zip`, `none`, `zstd`. Selecting the image format can now be done by passing the `--image_compression_formats` option. This flag gets a comma separated list of formats.
|
- SDK: The image compression format is now configurable. Supported formats are: `bz2`, `gz`, `zip`, `none`, `zst`. Selecting the image format can now be done by passing the `--image_compression_formats` option. This flag gets a comma separated list of formats.
|
||||||
|
@ -116,7 +116,7 @@ for FORMAT in ${FORMATS}; do
|
|||||||
COMPRESSION_FORMAT="bz2"
|
COMPRESSION_FORMAT="bz2"
|
||||||
|
|
||||||
if [[ "${FORMAT}" =~ ^(openstack|openstack_mini)$ ]];then
|
if [[ "${FORMAT}" =~ ^(openstack|openstack_mini)$ ]];then
|
||||||
COMPRESSION_FORMAT="gz"
|
COMPRESSION_FORMAT="gz,bz2"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
script image_to_vm.sh \
|
script image_to_vm.sh \
|
||||||
@ -130,7 +130,7 @@ for FORMAT in ${FORMATS}; do
|
|||||||
--sign_digests="${SIGNING_USER}" \
|
--sign_digests="${SIGNING_USER}" \
|
||||||
--download_root="${DOWNLOAD_ROOT}" \
|
--download_root="${DOWNLOAD_ROOT}" \
|
||||||
--upload_root="${UPLOAD_ROOT}" \
|
--upload_root="${UPLOAD_ROOT}" \
|
||||||
--image_compression_format="${COMPRESSION_FORMAT}" \
|
--image_compression_formats="${COMPRESSION_FORMAT}" \
|
||||||
--upload \
|
--upload \
|
||||||
${PRIVATE_UPLOAD_OPT}
|
${PRIVATE_UPLOAD_OPT}
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user