Add git commit information into the image. Fixes #43
This commit is contained in:
committed by
Diederik de Haas
parent
7c65ab3d7d
commit
afe64f3b1f
@@ -1,4 +1,5 @@
|
||||
# See https://wiki.debian.org/RaspberryPi3 for known issues and more details.
|
||||
# image.yml based on revision: __GITCOMMIT__
|
||||
|
||||
steps:
|
||||
- mkimg: "{{ output }}"
|
||||
@@ -170,3 +171,8 @@ steps:
|
||||
shell: |
|
||||
rm -f /etc/machine-id /var/lib/dbus/machine-id
|
||||
__TOUCH_MACHINE_ID__
|
||||
|
||||
# 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"
|
||||
|
||||
Reference in New Issue
Block a user