From 96c01a67e4834b1fff14bfc67f05dfd223d2f7c9 Mon Sep 17 00:00:00 2001 From: Johannes 'josch' Schauer Date: Fri, 23 Nov 2018 17:36:20 +0100 Subject: [PATCH] make_mirror.sh: use redirection to write tarfile During the Debian autopkgtest mmdebstrap is executed as root but we don't want the tarfile being owned by root. --- make_mirror.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/make_mirror.sh b/make_mirror.sh index fca47c9..c18df25 100755 --- a/make_mirror.sh +++ b/make_mirror.sh @@ -160,9 +160,12 @@ mkdir -p "$cachedir" # We do not use our own package cache here because # - it doesn't (and shouldn't) contain the extra packages # - it doesn't matter if the base system is from a different mirror timestamp +# Write tarfile via redirection because in the Debian package autopkgtest +# ./mmdebstrap is a suid binary and we do not want the tarfile being owned +# by root. ./mmdebstrap --variant=apt --architectures=amd64,armhf --mode=unshare \ --include=linux-image-amd64,systemd-sysv,perl,arch-test,fakechroot,fakeroot,mount,uidmap,proot,qemu-user-static,binfmt-support,qemu-user,dpkg-dev,mini-httpd,libdevel-cover-perl,debootstrap,libfakechroot:armhf,libfakeroot:armhf \ - unstable debian-unstable.tar + unstable > debian-unstable.tar cat << END > extlinux.conf default linux