Skip to content
Snippets Groups Projects
Commit 5283db0d authored by Emanuele Aina's avatar Emanuele Aina Committed by Andrej Shadura
Browse files

ospack: Store more information in /etc/os-release


Add the timestamp as `BUILD_ID` and the image type as `VARIANT_ID`
in `/etc/os-release`, so at some point we'll be able to phase
out `/etc/image_version`.

Signed-off-by: Emanuele Aina's avatarEmanuele Aina <emanuele.aina@collabora.com>
parent 49ffd809
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,7 @@ actions:
- action: run
description: "Setting up image version metadata"
chroot: true
script: scripts/setup_image_version.sh apertis {{ $suite }} {{ $timestamp }} collabora
script: scripts/setup_image_version.sh apertis {{ $suite }} {{ $timestamp }} collabora {{ $type }}
# Extend apt sources list
- action: run
......
......@@ -24,7 +24,7 @@ actions:
- action: run
description: "Setting up image version metadata"
chroot: true
script: scripts/setup_image_version.sh apertis {{ $suite }} {{ $timestamp }} collabora
script: scripts/setup_image_version.sh apertis {{ $suite }} {{ $timestamp }} collabora {{ $type }}
# Extend apt sources list
- action: run
......
......@@ -24,7 +24,7 @@ actions:
- action: run
description: "Setting up image version metadata"
chroot: true
script: scripts/setup_image_version.sh apertis {{ $suite }} {{ $timestamp }} collabora
script: scripts/setup_image_version.sh apertis {{ $suite }} {{ $timestamp }} collabora {{ $type }}
# Extend apt sources list
- action: run
......
......@@ -24,7 +24,7 @@ actions:
- action: run
description: "Setting up image version metadata"
chroot: true
script: scripts/setup_image_version.sh apertis {{ $suite }} {{ $timestamp }} collabora
script: scripts/setup_image_version.sh apertis {{ $suite }} {{ $timestamp }} collabora {{ $type }}
# Extend apt sources list
- action: run
......
......@@ -24,7 +24,7 @@ actions:
- action: run
description: "Setting up image version metadata"
chroot: true
script: scripts/setup_image_version.sh apertis {{ $suite }} {{ $timestamp }} collabora
script: scripts/setup_image_version.sh apertis {{ $suite }} {{ $timestamp }} collabora {{ $type }}
# Extend apt sources list
- action: run
......
......@@ -24,7 +24,7 @@ actions:
- action: run
description: "Setting up image version metadata"
chroot: true
script: scripts/setup_image_version.sh apertis {{ $suite }} {{ $timestamp }} collabora
script: scripts/setup_image_version.sh apertis {{ $suite }} {{ $timestamp }} collabora {{ $type }}
# Extend apt sources list
- action: run
......
......@@ -6,5 +6,11 @@ distro=$1
rel=$2
timestamp=$3
vendor=$4
variant=$5
echo "${distro} ${rel} ${timestamp} ${vendor}" > /etc/image_version
if [ -n "$variant" ]; then
echo "VARIANT_ID=$variant" >> /etc/os-release
fi
echo "BUILD_ID=$timestamp" >> /etc/os-release
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment