diff options
author | Sven Eckelmann <sven@narfation.org> | 2018-12-06 11:23:00 +0100 |
---|---|---|
committer | Mathias Kresin <dev@kresin.me> | 2019-01-02 22:36:17 +0100 |
commit | 1afe3d8443aacbaf72a9148448bc6e0e2d2d0a9c (patch) | |
tree | b1edd13bb16e5d4acdeaa954debf24edc39caf00 | |
parent | 894bcf59dc5b11ff38259a43cf4a0a3e9acada96 (diff) | |
download | upstream-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>
-rwxr-xr-x | scripts/sysupgrade-tar.sh | 2 |
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" |