Skip to content

Commit 2eb60f8

Browse files
committed
use busybox tar which does not support --warning=no-timestamp
Signed-off-by: Guohan Lu <gulv@microsoft.com>
1 parent 94e9dcd commit 2eb60f8

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

files/initramfs-tools/union-mount.j2

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@ case $1 in
1111
;;
1212
esac
1313

14-
. /usr/share/initramfs-tools/hook-functions
15-
16-
copy_exec /bin/tar /usr/bin/tar
17-
1814
set_tmpfs_log_partition_size()
1915
{
2016
varlogsize=128
@@ -56,7 +52,7 @@ mkdir -p ${rootmnt}/var/lib/docker
5652
if [ -f ${rootmnt}/host/$image_dir/{{ FILESYSTEM_DOCKERFS }} ]; then
5753
## mount tmpfs and extract docker into it
5854
mount -t tmpfs -o rw,nodev,size={{ DOCKER_RAMFS_SIZE }} tmpfs ${rootmnt}/var/lib/docker
59-
/usr/bin/tar xz --numeric-owner --warning=no-timestamp -f ${rootmnt}/host/$image_dir/{{ FILESYSTEM_DOCKERFS }} -C ${rootmnt}/var/lib/docker
55+
tar xz --numeric-owner -f ${rootmnt}/host/$image_dir/{{ FILESYSTEM_DOCKERFS }} -C ${rootmnt}/var/lib/docker
6056
else
6157
## Mount the working directory of docker engine in the raw partition, bypass the overlay
6258
mount --bind ${rootmnt}/host/$image_dir/{{ DOCKERFS_DIR }} ${rootmnt}/var/lib/docker

0 commit comments

Comments
 (0)