Use deterministic sorting Use numeric owner/group Set uid/gid to 0 Signed-off-by: Alexander Couzens <[email protected]>
@@ -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 > $@