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>
This commit is contained in:
parent
d6331d5583
commit
d98cafc7b6
1 changed files with 1 additions and 0 deletions
|
@ -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 > $@
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue