From caf17ee1c5fc89e4c6393d456589b81340ffd8d1 Mon Sep 17 00:00:00 2001 From: Bruce Leidl Date: Sat, 5 Jan 2019 22:38:18 -0500 Subject: [PATCH] append variables to /etc/os-release --- .../recipes-citadel/images/citadel-rootfs-image.bb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/meta-citadel/recipes-citadel/images/citadel-rootfs-image.bb b/meta-citadel/recipes-citadel/images/citadel-rootfs-image.bb index 609745e..07fa239 100644 --- a/meta-citadel/recipes-citadel/images/citadel-rootfs-image.bb +++ b/meta-citadel/recipes-citadel/images/citadel-rootfs-image.bb @@ -4,7 +4,7 @@ LICENSE = "MIT" SYSTEMD_DEFAULT_TARGET = "graphical.target" -ROOTFS_POSTPROCESS_COMMAND += "set_citadel_user_password; write_etc_citadel_channel; symlink_lib64; setup_var; " +ROOTFS_POSTPROCESS_COMMAND += "set_citadel_user_password; write_etc_citadel_channel; symlink_lib64; setup_var; append_os_release;" IMAGE_INSTALL += "\ packagegroup-citadel-base \ @@ -68,6 +68,11 @@ setup_var() { ln -sf ../usr/share/factory/var/lib ${IMAGE_ROOTFS}/var/lib } +append_os_release() { + echo "CITADEL_CHANNEL=\"${CITADEL_IMAGE_CHANNEL}\"" >> ${IMAGE_ROOTFS}/etc/os-release + echo "CITADEL_ROOTFS_VERSION=\"${CITADEL_IMAGE_VERSION_rootfs}\"" >> ${IMAGE_ROOTFS}/etc/os-release +} + do_rm_var_link() { rm ${IMAGE_ROOTFS}/var/lib }