From f2c5dce725ddb348e1b21de856517d1e8ee03fa5 Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Sat, 9 Sep 2017 14:28:07 +0200 Subject: /etc/issue: add the rootfs type and version to all images Add this in IMAGE_PREPROCESS so that all image types get this change. Signed-off-by: Max Krummenacher Acked-by: Marcel Ziswiler --- recipes-images/images/tdx-extra.inc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'recipes-images/images/tdx-extra.inc') diff --git a/recipes-images/images/tdx-extra.inc b/recipes-images/images/tdx-extra.inc index 8a78825..d1efaae 100644 --- a/recipes-images/images/tdx-extra.inc +++ b/recipes-images/images/tdx-extra.inc @@ -9,8 +9,16 @@ COPY_LIC_DIRS_colibri-vf = "0" #the following builds cross gdb and gdbserver DEPENDS += "gdb-cross-${TARGET_ARCH}" -#create the file /etc/timestamp +add_rootfs_version () { + echo -n "${IMAGE_NAME} ${PV}" >> ${IMAGE_ROOTFS}/etc/issue + echo " ${TDX_VERDATE}" | sed 's/-//' >>${IMAGE_ROOTFS}/etc/issue + echo "" >> ${IMAGE_ROOTFS}/etc/issue +} + +# create the file /etc/timestamp IMAGE_PREPROCESS_COMMAND_append = " rootfs_update_timestamp;" +# add the rootfs version to the welcome banner +ROOTFS_POSTPROCESS_COMMAND += " add_rootfs_version;" IMAGE_INSTALL_append_tegra = " \ u-boot-toradex-fw-utils \ -- cgit v1.2.3