From 129f803e11f517b481a489f7450d320326bb44ce Mon Sep 17 00:00:00 2001 From: xumia <59720581+xumia@users.noreply.github.com> Date: Tue, 11 May 2021 18:04:01 +0800 Subject: [PATCH] Fix the /var wrong permission issue (#7571) Why I did it Build broken when reproducible build enabled, relative to backport package systemd. The root cause is the bad permission of /var. --- scripts/build_debian_base_system.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build_debian_base_system.sh b/scripts/build_debian_base_system.sh index fe7841067e..e8c5ab42fe 100755 --- a/scripts/build_debian_base_system.sh +++ b/scripts/build_debian_base_system.sh @@ -78,7 +78,7 @@ do done touch $APTDEBIAN touch $DEBOOTSTRAP_BASE -(cd $BASEIMAGE_TARBALLPATH && tar -zcf $BASEIMAGE_TARBALL .) +(cd $BASEIMAGE_TARBALLPATH && fakeroot tar -zcf $BASEIMAGE_TARBALL .) sudo debootstrap --verbose --variant=minbase --arch $CONFIGURED_ARCH --unpack-tarball=$BASEIMAGE_TARBALL $IMAGE_DISTRO $FILESYSTEM_ROOT RET=$?