Browse Source

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 <[email protected]>
Alexander Couzens 8 years ago
parent
commit
d98cafc7b6
1 changed files with 1 additions and 0 deletions
  1. 1 0
      target/linux/ar71xx/image/senao.mk

+ 1 - 0
target/linux/ar71xx/image/senao.mk

@@ -9,6 +9,7 @@ define Build/senao-factory-image
 	$(CP) $(rootfs) [email protected]/openwrt-senao-$(board)-root.squashfs
 
 	$(TAR) -c \
+		--numeric-owner --owner=0 --group=0 --sort=name \
 		$(if $(SOURCE_DATE_EPOCH),--mtime="@$(SOURCE_DATE_EPOCH)") \
 		-C [email protected] . | gzip -9nc > $@