build: Use stable file ordering in sysupgrade.tar
authorSven Eckelmann <sven@narfation.org>
Thu, 6 Dec 2018 10:09:18 +0000 (11:09 +0100)
committerMathias Kresin <dev@kresin.me>
Wed, 2 Jan 2019 21:36:16 +0000 (22:36 +0100)
commit894bcf59dc5b11ff38259a43cf4a0a3e9acada96
tree7ec355367606df02db1bbfd8bd6fb86e6b460a14
parent15f6351ea32ec13104301fe02233f54f1adce4f2
build: Use stable file ordering in sysupgrade.tar

The file ordering in the current sysupgrade depends on the order of file in
a filesystem. This is often already in a sane (alphabetical order) but this
is not always the case. For example, the OpenWrt build servers return a
different ordering.

This breaks the reproducibility of the sysupgrade tarballs significantly
and also resulted in images which cannot be used for upgrades on devices
like the OpenMesh A42/A62.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
scripts/sysupgrade-tar.sh