CoreOS dm-verity: do not compress GCP images twice

This commit is contained in:
Malte Poll 2022-03-25 16:41:39 +01:00
parent 6f695892bf
commit 009e186b69

View File

@ -163,8 +163,8 @@ repack () {
gcp) gcp)
echo "📥 Repacking GCP image..." echo "📥 Repacking GCP image..."
tar --use-compress-program=pigz --owner=0 --group=0 -C "${unpacked_image_dir}" -Sch --format=oldgnu -f "${tmp_tar_file}" "${unpacked_image_filename}" tar --owner=0 --group=0 -C "${unpacked_image_dir}" -Sch --format=oldgnu -f "${tmp_tar_file}" "${unpacked_image_filename}"
"${PV}" "${tmp_tar_file}" | gzip -9c > "${packed_image}" "${PV}" "${tmp_tar_file}" | pigz -9c > "${packed_image}"
rm "${tmp_tar_file}" rm "${tmp_tar_file}"
echo " Repacked image stored in ${packed_image}" echo " Repacked image stored in ${packed_image}"
;; ;;