aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/image
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2017-06-24 18:33:52 +0200
committerAlexander Couzens <lynxis@fe80.eu>2017-06-25 12:14:26 +0200
commitd98cafc7b6b06618ecc774efbb862b5e18b08831 (patch)
tree3d88e04cbe5684c81775fd9d4af9886e8b041f53 /target/linux/ar71xx/image
parentd6331d5583d17e4cf9f67906449cb11dcef4007c (diff)
downloadupstream-d98cafc7b6b06618ecc774efbb862b5e18b08831.tar.gz
upstream-d98cafc7b6b06618ecc774efbb862b5e18b08831.tar.bz2
upstream-d98cafc7b6b06618ecc774efbb862b5e18b08831.zip
ar71xx/images/senao: fix reproducible issue using tar
Use deterministic sorting Use numeric owner/group Set uid/gid to 0 Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
Diffstat (limited to 'target/linux/ar71xx/image')
-rw-r--r--target/linux/ar71xx/image/senao.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/target/linux/ar71xx/image/senao.mk b/target/linux/ar71xx/image/senao.mk
index 0c56aa49b3..57e3610e5d 100644
--- a/target/linux/ar71xx/image/senao.mk
+++ b/target/linux/ar71xx/image/senao.mk
@@ -9,6 +9,7 @@ define Build/senao-factory-image
$(CP) $(rootfs) $@.senao/openwrt-senao-$(board)-root.squashfs
$(TAR) -c \
+ --numeric-owner --owner=0 --group=0 --sort=name \
$(if $(SOURCE_DATE_EPOCH),--mtime="@$(SOURCE_DATE_EPOCH)") \
-C $@.senao . | gzip -9nc > $@