Skip to content

Commit 5d8cbee

Browse files
qiluo-msftlguohan
authored andcommitted
[installer]: Suppress tar xz warning about time stamp in the future, if date is not correctly set (#1562)
Signed-off-by: Qi Luo <[email protected]>
1 parent 8572f84 commit 5d8cbee

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

installer/x86_64/install.sh

+5-1
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,11 @@ fi
446446
# Decompress the file for the file system directly to the partition
447447
unzip -o $ONIE_INSTALLER_PAYLOAD -x "$FILESYSTEM_DOCKERFS" -d $demo_mnt/$image_dir
448448
449-
TAR_EXTRA_OPTION="--numeric-owner"
449+
if [ "$install_env" = "onie" ]; then
450+
TAR_EXTRA_OPTION="--numeric-owner"
451+
else
452+
TAR_EXTRA_OPTION="--numeric-owner --warning=no-timestamp"
453+
fi
450454
mkdir -p $demo_mnt/$image_dir/$DOCKERFS_DIR
451455
unzip -op $ONIE_INSTALLER_PAYLOAD "$FILESYSTEM_DOCKERFS" | tar xz $TAR_EXTRA_OPTION -f - -C $demo_mnt/$image_dir/$DOCKERFS_DIR
452456

0 commit comments

Comments
 (0)