From 4b03fb399b76cbf8f2a9aa5318bbd1892ef5fefc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Gr=C3=B6ber?= Date: Sun, 2 Sep 2018 21:29:24 +0200 Subject: [PATCH] aps: Add more build info to built image --- build-image.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/build-image.sh b/build-image.sh index 5b6c00a..4216e70 100755 --- a/build-image.sh +++ b/build-image.sh @@ -42,7 +42,13 @@ subtarget=$(. "$CONTROL"; echo "${SUBTARGET}") tmp="$(mktemp --tmpdir -d files.XXXXXXXXX)" mkdir -p "$tmp"/etc - echo "$VERSION" > "$tmp"/etc/its-access-point-version + mkdir -p "$tmp"/etc/its-access-point/ + printf '%s\n' "$VERSION" > "$tmp"/etc/its-access-point-version # legacy + printf '%s\n' "$VERSION" > "$tmp"/etc/its-access-point/version + printf '%s\n' "$IMAGEBUILDER_URL" \ + > "$tmp"/etc/its-access-point/imagebuilder-url + sha512sum "$imagebuilder" > "$tmp"/etc/its-access-point/imagebuilder-hash + cat "$CONTROL" > "$tmp"/etc/its-access-point/control if [ -n "$COMMON_FILES" ]; then cp -aLTv "$TOPDIR/$COMMON_FILES" "$tmp"