Files
openwrt/target
Paul Spooren e77f27eda8 gemini: make the DNS-313 factory image reproducible
The boot partition of the DNS-313 factory image differs between builds:

  -Linux rev 1.0 ext2 filesystem data, UUID=9f7d7721-0bf7-4483-bd56-b539d195f181
  +Linux rev 1.0 ext2 filesystem data, UUID=d3ca4870-378b-48dd-9b05-760812dfeb81
  -drwxr-xr-x ... 2026-09-23 07:37:23.000000 ./.boot/
  +drwxr-xr-x ... 2026-09-23 09:38:09.000000 ./.boot/

genext2fs copies the mtimes of the staged files from the host and adds
them in readdir() order, which also decides their inode numbers and
blocks. It leaves the UUID empty, so e2fsck fills in a random one, and
e2fsck stamps the last check with the current time.

Pass genext2fs a name sorted tarball with mtimes clamped to
SOURCE_DATE_EPOCH and group/other write bits cleared, derive the UUID
from IMG_PART_DISKGUID and run e2fsck with E2FSCK_TIME set to
SOURCE_DATE_EPOCH.

Link: https://github.com/openwrt/openwrt/pull/25358
Signed-off-by: Paul Spooren <mail@aparcar.org>
2026-10-03 20:56:05 +02:00
..
…
…