From 682df5778670c0a3163208336ea738d98341d279 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonard=20G=C3=B6hrs?= Date: Fri, 23 Feb 2024 15:23:14 +0100 Subject: [PATCH] meta-lxatac-software: lxatac-core-bundle-base: migrate /etc/hostname MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We set default hostnames based on the serial number of the LXA TAC, (e.g. lxatac-00011) which is a sensible thing to do. But users may want to set their own hostnames due to constraints of their infrastructure or just personal preference. Enable them to do so persistently across RAUC updates. Signed-off-by: Leonard Göhrs --- meta-lxatac-software/recipes-core/bundles/files/hook.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/meta-lxatac-software/recipes-core/bundles/files/hook.sh b/meta-lxatac-software/recipes-core/bundles/files/hook.sh index 4f252dc3..9f7d2c8a 100644 --- a/meta-lxatac-software/recipes-core/bundles/files/hook.sh +++ b/meta-lxatac-software/recipes-core/bundles/files/hook.sh @@ -71,6 +71,7 @@ case "$1" in # installing from an eMMC image. rm -f "${RAUC_SLOT_MOUNT_POINT}/system-update" + migrate /etc/hostname migrate /etc/machine-id migrate /etc/labgrid/environment migrate /etc/labgrid/userconfig.yaml