From 7d9f278c41e33626b0301a97198d4a1c96ed6388 Mon Sep 17 00:00:00 2001 From: Arturo Buzarra Date: Mon, 14 Nov 2022 18:44:41 +0100 Subject: [PATCH] swupdate: add config fragment to fix systemd initialization Since commit 554b97a ("swupdate: Set service type to notify") in meta-swupdate layer, the swupdate service fails on boot due to the following timeout error: swupdate.sh[2708]: [TRACE] : SWUPDATE running : [listener_create] : creating socket at /tmp/swupdateprog swupdate.sh[2708]: [TRACE] : SWUPDATE running : [listener_create] : creating socket at /tmp/sockinstctrl systemd[1]: swupdate.service: start operation timed out. Terminating. systemd[1]: swupdate.service: Failed with result 'timeout'. systemd[1]: Failed to start SWUpdate daemon. This commit adds a config fragment to enable systemd support to swupdate daemon. Signed-off-by: Arturo Buzarra --- meta-digi-dey/recipes-support/swupdate/swupdate/systemd.cfg | 2 ++ .../recipes-support/swupdate/swupdate_2022.05.bbappend | 1 + 2 files changed, 3 insertions(+) create mode 100644 meta-digi-dey/recipes-support/swupdate/swupdate/systemd.cfg diff --git a/meta-digi-dey/recipes-support/swupdate/swupdate/systemd.cfg b/meta-digi-dey/recipes-support/swupdate/swupdate/systemd.cfg new file mode 100644 index 000000000..d1faa003d --- /dev/null +++ b/meta-digi-dey/recipes-support/swupdate/swupdate/systemd.cfg @@ -0,0 +1,2 @@ +# Add support to systemd +CONFIG_SYSTEMD=y diff --git a/meta-digi-dey/recipes-support/swupdate/swupdate_2022.05.bbappend b/meta-digi-dey/recipes-support/swupdate/swupdate_2022.05.bbappend index 3d83e9df6..0a7490d88 100644 --- a/meta-digi-dey/recipes-support/swupdate/swupdate_2022.05.bbappend +++ b/meta-digi-dey/recipes-support/swupdate/swupdate_2022.05.bbappend @@ -8,6 +8,7 @@ RDEPENDS:${PN} += "libgcc" SRC_URI += " \ file://0001-Makefile-change-Makefile-to-build-swupdate-library-s.patch \ file://0002-config-add-on-the-fly-build-configuration-variable.patch \ + ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'file://systemd.cfg', '', d)} \ " do_configure:append() {