Skip to content

Commit

Permalink
Replace gnu tar with bsdtar
Browse files Browse the repository at this point in the history
This should fix problems with gnu tar failing to create directories due
to changing inodes on overlayfs.

See coreos/bugs#1095 for details.
  • Loading branch information
felixbuenemann committed Oct 11, 2018
1 parent e88f938 commit 61d2bd3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rootfs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ RUN addgroup --quiet --gid 2000 slug && \
# disable source repos (speeds up apt-get update)
RUN sed -i -e 's/^deb-src/#deb-src/' /etc/apt/sources.list && \
apt-get update && \
apt-get install -y md5deep && \
apt-get install -y md5deep bsdtar && \
# cleanup
apt-get autoremove -y && \
apt-get clean -y && \
ln -nfs /usr/bin/bsdtar /bin/tar && \
# package up license files if any by appending to existing tar
COPYRIGHT_TAR='/usr/share/copyrights.tar'; \
gunzip $COPYRIGHT_TAR.gz; tar -rf $COPYRIGHT_TAR /usr/share/doc/*/copyright; gzip $COPYRIGHT_TAR && \
Expand Down

0 comments on commit 61d2bd3

Please sign in to comment.