Skip to content

Commit bf9cac1

Browse files
author
Prakash Surya
authored
DLPX-76479 failure to unpack upgrade image via GUI due to "tar" reporting "time stamp ... in the future" (#307)
1 parent 4877282 commit bf9cac1

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

files/common/usr/bin/get-property-from-image

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@ pushd "$UNPACK_DIR" &>/dev/null || die "'pushd $UNPACK_DIR' failed"
8282

8383
DELPHIX_SIGNATURE_VERSION=$(/usr/bin/get-appliance-version --major)
8484

85-
tar -x SHA256SUMS SHA256SUMS.sig."$DELPHIX_SIGNATURE_VERSION" version.info -f "$UPGRADE_IMAGE_PATH" ||
85+
tar --warning=no-timestamp \
86+
-x SHA256SUMS SHA256SUMS.sig."$DELPHIX_SIGNATURE_VERSION" version.info \
87+
-f "$UPGRADE_IMAGE_PATH" ||
8688
die 14 "failed to extract files from upgrade image '$UPGRADE_IMAGE_PATH'"
8789

8890
for file in SHA256SUMS SHA256SUMS.sig."$DELPHIX_SIGNATURE_VERSION" version.info; do

files/common/usr/bin/unpack-image

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ pushd "$UNPACK_DIR" &>/dev/null || die "'pushd $UNPACK_DIR' failed"
101101

102102
report_progress_inc 10 "Extracting upgrade image."
103103

104-
tar -xf "$UPGRADE_IMAGE_PATH" ||
104+
tar --warning=no-timestamp -xf "$UPGRADE_IMAGE_PATH" ||
105105
die 14 "failed to extract upgrade image '$UPGRADE_IMAGE_PATH'"
106106

107107
report_progress_inc 40 "Verifying format."

0 commit comments

Comments
 (0)