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 +++++++++- recipes-images/images/tdx-image-fstype.inc | 5 ----- 2 files changed, 9 insertions(+), 6 deletions(-) (limited to 'recipes-images/images') 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 \ diff --git a/recipes-images/images/tdx-image-fstype.inc b/recipes-images/images/tdx-image-fstype.inc index 80b004c..83dc3bb 100644 --- a/recipes-images/images/tdx-image-fstype.inc +++ b/recipes-images/images/tdx-image-fstype.inc @@ -171,11 +171,6 @@ fakeroot imagedeploy_arm() { rm -f ${IMAGE_ROOTFS}/../${MACHINE}_bin/u-boot-hsmmc-${MACHINE}.${UBOOT_EXT} mv ${IMAGE_ROOTFS}/../${MACHINE}_bin/${UBOOT_SYMLINK} ${IMAGE_ROOTFS}/../${MACHINE}_bin/${UBOOT_BINARY} - # add the rootfs version to the welcome banner - echo -n "${IMAGE_NAME} ${PV}" >> ${IMAGE_ROOTFS}/etc/issue - echo " ${TDX_VERDATE}" | sed 's/-//' >> ${IMAGE_ROOTFS}/etc/issue - echo "" >> ${IMAGE_ROOTFS}/etc/issue - # add additional tools if required imagedeploytools -- cgit v1.2.3