diff options
author | Daniel Golle <daniel@makrotopia.org> | 2022-03-28 18:13:45 +0100 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2022-03-28 20:52:37 +0100 |
commit | 068ea2cde04e2666fb05731cea941bccfaeddc25 (patch) | |
tree | 05aabf340053d25c0fcc7d9664096b40fd074d1e /scripts | |
parent | 103ad908c286049b0a7c68b793f2194b0c4d5711 (diff) | |
download | upstream-068ea2cde04e2666fb05731cea941bccfaeddc25.tar.gz upstream-068ea2cde04e2666fb05731cea941bccfaeddc25.tar.bz2 upstream-068ea2cde04e2666fb05731cea941bccfaeddc25.zip |
scripts/gen_image_generic.sh: make ext4 bootfs reproducible
Set fixed timestamp for kernel other files in /boot filesystem.
This should help making x86 *combined* images reproducible.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/gen_image_generic.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/gen_image_generic.sh b/scripts/gen_image_generic.sh index 17888eac60..6a01c813d7 100755 --- a/scripts/gen_image_generic.sh +++ b/scripts/gen_image_generic.sh @@ -34,7 +34,7 @@ if [ -n "$GUID" ]; then mkfs.fat -n kernel -C "$OUTPUT.kernel" -S 512 "$((KERNELSIZE / 1024))" mcopy -s -i "$OUTPUT.kernel" "$KERNELDIR"/* ::/ else - make_ext4fs -J -L kernel -l "$KERNELSIZE" "$OUTPUT.kernel" "$KERNELDIR" + make_ext4fs -J -L kernel -l "$KERNELSIZE" ${SOURCE_DATE_EPOCH:+-T ${SOURCE_DATE_EPOCH}} "$OUTPUT.kernel" "$KERNELDIR" fi dd if="$OUTPUT.kernel" of="$OUTPUT" bs=512 seek="$KERNELOFFSET" conv=notrunc rm -f "$OUTPUT.kernel" |