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 126e911243
commit 4b03fb399b

View file

@ -42,7 +42,13 @@ subtarget=$(. "$CONTROL"; echo "${SUBTARGET}")
tmp="$(mktemp --tmpdir -d files.XXXXXXXXX)" tmp="$(mktemp --tmpdir -d files.XXXXXXXXX)"
mkdir -p "$tmp"/etc 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 if [ -n "$COMMON_FILES" ]; then
cp -aLTv "$TOPDIR/$COMMON_FILES" "$tmp" cp -aLTv "$TOPDIR/$COMMON_FILES" "$tmp"