From 60a1a4b5ae41c980e5a81527133d1898a6f558eb Mon Sep 17 00:00:00 2001 From: Florin Sarbu Date: Mon, 4 Nov 2024 16:48:52 +0000 Subject: [PATCH] pmsrv: Do not set hostname This powermanager service sets the hostname but this conflicts with balenaOS so we remove this settings from the configuration file. Confirmed it with the customer that disabling this behavior does not introduce issues for them. Signed-off-by: Florin Sarbu --- .../pmsrv/files/do_not_set_hostname.patch | 13 +++++++++++++ .../recipes-core/pmsrv/pmsrv_%.bbappend | 3 +++ 2 files changed, 16 insertions(+) create mode 100644 layers/meta-balena-5x-owa/recipes-core/pmsrv/files/do_not_set_hostname.patch create mode 100644 layers/meta-balena-5x-owa/recipes-core/pmsrv/pmsrv_%.bbappend diff --git a/layers/meta-balena-5x-owa/recipes-core/pmsrv/files/do_not_set_hostname.patch b/layers/meta-balena-5x-owa/recipes-core/pmsrv/files/do_not_set_hostname.patch new file mode 100644 index 00000000..3d1158aa --- /dev/null +++ b/layers/meta-balena-5x-owa/recipes-core/pmsrv/files/do_not_set_hostname.patch @@ -0,0 +1,13 @@ +Index: 1.0.27-r0/pmsrv.json +=================================================================== +--- 1.0.27-r0.orig/pmsrv.json ++++ 1.0.27-r0/pmsrv.json +@@ -1,7 +1,7 @@ + { + "name": "pmsrv", + "reset_lines": 20, +- "set_hostname": 1, ++ "set_hostname": 0, + "set_default": 1, + "set_time": 0, + "secure_time": 1, diff --git a/layers/meta-balena-5x-owa/recipes-core/pmsrv/pmsrv_%.bbappend b/layers/meta-balena-5x-owa/recipes-core/pmsrv/pmsrv_%.bbappend new file mode 100644 index 00000000..f8f344f6 --- /dev/null +++ b/layers/meta-balena-5x-owa/recipes-core/pmsrv/pmsrv_%.bbappend @@ -0,0 +1,3 @@ +FILESEXTRAPATHS:append := ":${THISDIR}/files" + +SRC_URI:append = " file://do_not_set_hostname.patch"