mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
Use parallel gzip implementation (pigz) to repack GCP image after recalculating dm-verity hashtree (#1)
This commit is contained in:
parent
f9136cfbe1
commit
d772e46667
@ -163,7 +163,7 @@ repack () {
|
||||
|
||||
gcp)
|
||||
echo "📥 Repacking GCP image..."
|
||||
tar --owner=0 --group=0 -C "${unpacked_image_dir}" -Sch --format=oldgnu -f "${tmp_tar_file}" "${unpacked_image_filename}"
|
||||
tar --use-compress-program=pigz --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}"
|
||||
rm "${tmp_tar_file}"
|
||||
echo " Repacked image stored in ${packed_image}"
|
||||
|
Loading…
Reference in New Issue
Block a user