tizen-release now ships /etc/tizen-build.conf with build information
This information must be completed at image creation time with
the snapshot ID and the image build date.
Change-Id: I7e5055dace50286f760e462ecdec7f4d2393ac73
Signed-off-by: Stephane Desneux <stephane.desneux@open.eurogiciel.org>
echo "BUILD_ID=$IMG_NAME" >> $INSTALL_ROOT/etc/tizen-release
echo "BUILD_ID=$IMG_NAME" >> $INSTALL_ROOT/etc/os-release
echo "$IMG_NAME @BUILD_ID@" >>$INSTALL_ROOT/etc/tizen-snapshot
+
+ sed -ri \
+ -e 's|@BUILD_ID[@]|@BUILD_ID@|g' \
+ -e "s|@BUILD_DATE[@]|$(date +%Y%m%d_%H%M%S)|g" \
+ $INSTALL_ROOT/etc/tizen-build.conf
fi