aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2018-12-06 11:23:00 +0100
committerMathias Kresin <dev@kresin.me>2019-01-02 22:36:17 +0100
commit1afe3d8443aacbaf72a9148448bc6e0e2d2d0a9c (patch)
treeb1edd13bb16e5d4acdeaa954debf24edc39caf00 /scripts
parent894bcf59dc5b11ff38259a43cf4a0a3e9acada96 (diff)
downloadupstream-1afe3d8443aacbaf72a9148448bc6e0e2d2d0a9c.tar.gz
upstream-1afe3d8443aacbaf72a9148448bc6e0e2d2d0a9c.tar.bz2
upstream-1afe3d8443aacbaf72a9148448bc6e0e2d2d0a9c.zip
build: Drop user/group ID/name from sysupgrade.tar
Tar will automatically record the user/group ID and name for files/directories. This reduces the reproducibility of the sysupgrade.tar because most of the people don't use the same username as the OpenWrt buildserver. Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/sysupgrade-tar.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/sysupgrade-tar.sh b/scripts/sysupgrade-tar.sh
index ca5577387d..d1d627a96e 100755
--- a/scripts/sysupgrade-tar.sh
+++ b/scripts/sysupgrade-tar.sh
@@ -61,7 +61,7 @@ if [ -n "$SOURCE_DATE_EPOCH" ]; then
mtime="--mtime=@${SOURCE_DATE_EPOCH}"
fi
-(cd "$tmpdir"; tar --sort=name -cvf sysupgrade.tar sysupgrade-${board} ${mtime})
+(cd "$tmpdir"; tar --sort=name --owner=0 --group=0 --numeric-owner -cvf sysupgrade.tar sysupgrade-${board} ${mtime})
err="$?"
if [ -e "$tmpdir/sysupgrade.tar" ]; then
cp "$tmpdir/sysupgrade.tar" "$outfile"