[yocto] [meta-ivi][PATCH 2/2] dlt-daemon: Remove User option from systemd services

Andrei Gherzan andrei.gherzan at windriver.com
Mon Jan 28 10:01:50 PST 2013


All systemd services use "genivi" as User option. There is no such username
so these services would fail.

Signed-off-by: Andrei Gherzan <andrei.gherzan at windriver.com>
---
 recipes-extended/dlt-daemon/dlt-daemon_2.9.0.bb |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/recipes-extended/dlt-daemon/dlt-daemon_2.9.0.bb b/recipes-extended/dlt-daemon/dlt-daemon_2.9.0.bb
index 5be4aba..58aaa15 100644
--- a/recipes-extended/dlt-daemon/dlt-daemon_2.9.0.bb
+++ b/recipes-extended/dlt-daemon/dlt-daemon_2.9.0.bb
@@ -11,7 +11,7 @@ DESCRIPTION = "This component provides a standardised log and trace interface, b
 HOMEPAGE = "https://www.genivi.org/"
 SECTION = "console/utils"
 
-PR = "r0"
+PR = "r1"
 
 inherit gzipnative
 
@@ -33,3 +33,9 @@ FILES_${PN}-systemd += "${systemd_unitdir}/system/"
 PACKAGES =+ "${PN}-systemd"
 
 EXTRA_OECMAKE = "-DWITH_SYSTEMD=ON"
+
+# Remove "User=genivi" option from systemd services
+# as there is no such username
+do_install_append() {
+    sed -i '/User/d' ${D}/${systemd_unitdir}/system/*.service
+}
-- 
1.7.5.4




More information about the yocto mailing list