aps: Add more build info to built image

This commit is contained in:
Daniel Gröber 2018-09-02 21:29:24 +02:00
parent ffbc42ee2c
commit c8a9a27f89
1 changed files with 7 additions and 1 deletions

View File

@ -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"