diff options
author | Daniel Golle <daniel@makrotopia.org> | 2022-03-28 18:13:45 +0100 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2022-04-15 14:11:49 +0100 |
commit | a376efae8f17a94b6c9eb04fa7ef05a5abf73397 (patch) | |
tree | 34ae88a554f0af96a466f2dfced3e97887b2dff2 /scripts/gen_image_generic.sh | |
parent | e5bc5337843b23926557dc07659c8dead6b0f26d (diff) | |
download | upstream-a376efae8f17a94b6c9eb04fa7ef05a5abf73397.tar.gz upstream-a376efae8f17a94b6c9eb04fa7ef05a5abf73397.tar.bz2 upstream-a376efae8f17a94b6c9eb04fa7ef05a5abf73397.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>
(cherry picked from commit 068ea2cde04e2666fb05731cea941bccfaeddc25)
Diffstat (limited to 'scripts/gen_image_generic.sh')
-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" |