Skip to content
Browse files

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

Signed-off-by: Sven Eckelmann <>
  • Loading branch information...
ecsv authored and mkresin committed Dec 6, 2018
1 parent 894bcf5 commit 1afe3d8443aacbaf72a9148448bc6e0e2d2d0a9c
Showing with 1 addition and 1 deletion.
  1. +1 −1 scripts/
@@ -61,7 +61,7 @@ if [ -n "$SOURCE_DATE_EPOCH" ]; then

(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})
if [ -e "$tmpdir/sysupgrade.tar" ]; then
cp "$tmpdir/sysupgrade.tar" "$outfile"

0 comments on commit 1afe3d8

Please sign in to comment.
You can’t perform that action at this time.