summaryrefslogtreecommitdiffstats
path: root/examples/recipes/image/build.yml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/recipes/image/build.yml')
-rw-r--r--examples/recipes/image/build.yml13
1 files changed, 8 insertions, 5 deletions
diff --git a/examples/recipes/image/build.yml b/examples/recipes/image/build.yml
index 3f6d8f3..0d5fac4 100644
--- a/examples/recipes/image/build.yml
+++ b/examples/recipes/image/build.yml
@@ -46,12 +46,15 @@ tasks:
default: {}
run: |
IMAGE={{destdir}}/{{basename}}.ext4
- UUID="$(
- python3 \
- -c 'import sys; import uuid; print(uuid.UUID(hex=sys.argv[1][:32], version=4))' \
- "$INPUT_HASH"
- )"
mkdir {{destdir}}
make_ext4fs -l 2G -T "$SOURCE_DATE_EPOCH" -L root "$IMAGE" {{sysroot}}
+ E2FSPROGS_FAKE_TIME="$SOURCE_DATE_EPOCH" tune2fs -U '00000000-0000-4000-8000-000000000000' "$IMAGE"
+
+ HASH=$(sha256sum "$IMAGE")
+ UUID=$(
+ python3 \
+ -c 'import sys; import uuid; print(uuid.UUID(hex=sys.argv[1][:32], version=4))' \
+ "$HASH"
+ )
E2FSPROGS_FAKE_TIME="$SOURCE_DATE_EPOCH" tune2fs -U "$UUID" "$IMAGE"