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>
master
Alexander Couzens 7 years ago
parent d6331d5583
commit d98cafc7b6
No known key found for this signature in database
GPG Key ID: C29E9DA6A0DF8604
  1. 1
      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 > $@

Loading…
Cancel
Save