]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
wic: make ext2/3/4 images reproducible
authorSergei Zhmylev <s.zhmylev@yadro.com>
Mon, 7 Nov 2022 14:24:53 +0000 (17:24 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 7 Nov 2022 21:57:18 +0000 (21:57 +0000)
commit75d2dd0ea7790db2e8ee921784ca373abff2df65
tree1493d1f089bc820303b429a48cfc5984f2b70e6e
parent7e052d03464ba5e880a6c5a0e45ff2f467ef97e8
wic: make ext2/3/4 images reproducible

Ext2/3/4 FS contains not only mtime, but also ctime, atime and crtime.
Currently, all the files are being added into the rootfs image using
mkfs -d functionality which affects all the timestamps excluding mtime.
This patch ensures these timestamps inside the FS image equal to
the SOURCE_DATE_EPOCH if it is set.

Signed-off-by: Sergei Zhmylev <s.zhmylev@yadro.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
scripts/lib/wic/partition.py