[OS-RELEASE] Add info about IMAGE version and ID
This info is stored inside /etc/os-release file. This last is created by default by poky and with this commit we are going to add two new fields:
- IMAGE_VERSION
- IMAGE_ID
These fields are used by edgehog-device-runtime tool in order to populate "Base Image" tab (Name and version fields inside Edgehog web page).
LIMITATION: VERSION and ID should be dynamically set during the image build stage. Today, this info is hardcoded into the recipe and any update requires a manual operation. This will be fixed in the next release.
Example of newest content of /etc/os-release:
ID=clea-os-things-wayland
NAME="SECO CLEA OS Release Distro"
VERSION="4.0.5 (kirkstone)"
VERSION_ID=4.0.5
PRETTY_NAME="SECO CLEA OS Release Distro 4.0.5 (kirkstone)"
DISTRO_CODENAME="kirkstone"
IMAGE_VERSION="1.6.0"
IMAGE_ID="kirkstone_1-06-00"
Edited by Davide Cardillo