We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6ea0b9c + 502f8a5 commit 5d9be68Copy full SHA for 5d9be68
config/peerpods/podvm/gcp-podvm-image-handler.sh
@@ -154,8 +154,8 @@ function create_image_from_prebuilt_artifact() {
154
155
echo "Compacting ${RAW_IMAGE_PATH} into /tmp/${IMAGE_NAME}.tar.gz"
156
157
- # TAR the raw image (GCP expects a compressed archive)
158
- tar -cvzf "/tmp/${IMAGE_NAME}.tar.gz" -C "$(dirname "${RAW_IMAGE_PATH}")" "$(basename "${RAW_IMAGE_PATH}")" ||
+ # TAR the raw image (GCP expects a compressed archive with disk.raw named file)
+ tar -cvzf "/tmp/${IMAGE_NAME}.tar.gz" -C "$(dirname "${RAW_IMAGE_PATH}")" --transform="s|$(basename "${RAW_IMAGE_PATH}")|disk.raw|" "$(basename "${RAW_IMAGE_PATH}")" ||
159
error_exit "Failed to create tarball for GCP"
160
161
# Create bucket if doesn't exist
0 commit comments