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>
owl
Alexander Couzens 2017-06-24 18:33:52 +02:00
parent d6331d5583
commit d98cafc7b6
No known key found for this signature in database
GPG Key ID: C29E9DA6A0DF8604
1 changed files with 1 additions and 0 deletions

View File

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