Add buildtime to raspi-image-id in the image itself

When the image was build also determines which package versions got
installed in the generated image and could help explain why a user has
problems with the downloaded image.

Signed-off-by: Diederik de Haas <didi.debian@cknow.org>
This commit is contained in:
Diederik de Haas
2022-01-14 00:19:57 +01:00
parent afe64f3b1f
commit 1211f8af04
2 changed files with 4 additions and 2 deletions

View File

@@ -175,4 +175,4 @@ steps:
# Create /etc/raspi-image-id to know, from what commit the image was built
- chroot: /
shell: |
echo "image based on revision: __GITCOMMIT__ " > "/etc/raspi-image-id"
echo "image based on revision: __GITCOMMIT__ and build on __BUILDTIME__ (UTC)" > "/etc/raspi-image-id"