From: Jan Kiszka <[email protected]>

This tags the images with the layer version and further information from
git as well as provides a proper description. The information can then
be retrieved from /etc/os-release on the target.

Signed-off-by: Jan Kiszka <[email protected]>
---
 conf/layer.conf                   | 2 ++
 recipes-core/images/demo-image.bb | 3 +++
 2 files changed, 5 insertions(+)

diff --git a/conf/layer.conf b/conf/layer.conf
index ad50622..2d45637 100644
--- a/conf/layer.conf
+++ b/conf/layer.conf
@@ -17,3 +17,5 @@ BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \
 BBFILE_COLLECTIONS += "jailhouse"
 BBFILE_PATTERN_jailhouse = "^${LAYERDIR}/"
 BBFILE_PRIORITY_jailhouse = "6"
+
+LAYERDIR_jailhouse = "${LAYERDIR}"
diff --git a/recipes-core/images/demo-image.bb 
b/recipes-core/images/demo-image.bb
index 558942b..e6bfd06 100644
--- a/recipes-core/images/demo-image.bb
+++ b/recipes-core/images/demo-image.bb
@@ -15,6 +15,9 @@ ROOTFS_EXTRA = "1024"
 
 require recipes-core/images/isar-image-base.bb
 
+ISAR_RELEASE_CMD = "git -C ${LAYERDIR_jailhouse} describe --tags --dirty 
--match 'v[0-9].[0-9]*'"
+DESCRIPTION = "Jailhouse demo image"
+
 IMAGE_PREINSTALL += " \
     bash-completion less vim nano man \
     ifupdown isc-dhcp-client net-tools iputils-ping ssh \
-- 
2.16.4

-- 
You received this message because you are subscribed to the Google Groups 
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to