Skip to content

Commit

Permalink
[image]: add --numeric_owner to perserve the original owner of the fo…
Browse files Browse the repository at this point in the history
…r docker filesystem (#626)
  • Loading branch information
lguohan authored May 24, 2017
1 parent 13c18ed commit 0104dbb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion installer/x86_64/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,8 @@ fi
unzip $ONIE_INSTALLER_PAYLOAD -d $demo_mnt/$image_dir
if [ -f $demo_mnt/$image_dir/$FILESYSTEM_DOCKERFS ]; then
cd $demo_mnt/$image_dir && mkdir -p $DOCKERFS_DIR && tar xf $FILESYSTEM_DOCKERFS -C $DOCKERFS_DIR && rm -f $FILESYSTEM_DOCKERFS; cd $OLDPWD
TAR_EXTRA_OPTION="--numeric-owner"
cd $demo_mnt/$image_dir && mkdir -p $DOCKERFS_DIR && tar x $TAR_EXTRA_OPTION -f $FILESYSTEM_DOCKERFS -C $DOCKERFS_DIR && rm -f $FILESYSTEM_DOCKERFS; cd $OLDPWD
fi
# Create loop device for /var/log to limit its size to $VAR_LOG_SIZE MB
Expand Down

0 comments on commit 0104dbb

Please sign in to comment.