Fix service file of agl-compositor for guest integration 72/29172/3
authorNaoto Yamaguchi <naoto.yamaguchi@aisin.co.jp>
Sun, 27 Aug 2023 06:11:41 +0000 (15:11 +0900)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Mon, 4 Sep 2023 13:07:00 +0000 (13:07 +0000)
After the commit  4b4c0f15d1d2a52e636aa22e56cf864d1a8a656b1 of
meta-agl, AGL Demo IVI based container guest was not showing
display.  The container guest need to drop tty dependency.
Before that commit, agl-compositore did not have tty
dependency.  But that commit added new systemd service file,
it has tty dependency.

This patch re-remove tty dependency from agl-compositor.

Bug-AGL: SPEC-4888

Change-Id: I485041b19b89f06df5c26a557546dfd7d8ecaa73
Signed-off-by: Naoto Yamaguchi <naoto.yamaguchi@aisin.co.jp>
Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl-demo/+/29172
Tested-by: Jenkins Job builder account
ci-image-build: Jenkins Job builder account
ci-image-boot-test: Jenkins Job builder account
Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
recipes-graphics/wayland/agl-compositor-init-agl-container-guest/agl-compositor-guest.conf [new file with mode: 0644]
recipes-graphics/wayland/agl-compositor-init-agl-container-guest/agl-compositor.conf [deleted file]
recipes-graphics/wayland/agl-compositor-init_agl-container-guest-demo.inc

diff --git a/recipes-graphics/wayland/agl-compositor-init-agl-container-guest/agl-compositor-guest.conf b/recipes-graphics/wayland/agl-compositor-init-agl-container-guest/agl-compositor-guest.conf
new file mode 100644 (file)
index 0000000..b98108e
--- /dev/null
@@ -0,0 +1,14 @@
+# This is a system unit for launching AGL compositor in container guest.
+# Need to drop tty dependency.
+[Unit]
+ConditionPathExists=
+
+[Service]
+TTYPath=
+TTYReset=
+TTYVHangup=
+TTYVTDisallocate=
+
+StandardInput=null
+
+UtmpIdentifier=
diff --git a/recipes-graphics/wayland/agl-compositor-init-agl-container-guest/agl-compositor.conf b/recipes-graphics/wayland/agl-compositor-init-agl-container-guest/agl-compositor.conf
deleted file mode 100644 (file)
index 0ff4705..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-[Unit]
-
-[Service]
-Environment=XDG_SESSION_TYPE=wayland
index 9fa2daf..fe9bd09 100644 (file)
@@ -2,12 +2,14 @@ FILESEXTRAPATHS:prepend := "${THISDIR}/agl-compositor-init-agl-container-guest:"
 
 SRC_URI:append = " \
     file://agl-compositor.env \
+    file://agl-compositor-guest.conf \
     "
 
 DRM_LEASE_DEVICE = "lease"
 
 do_install:append() {
     install -Dm644 ${WORKDIR}/agl-compositor.env ${D}${sysconfdir}/default/agl-compositor
+    install -m644 ${WORKDIR}/agl-compositor-guest.conf ${D}/${systemd_system_unitdir}/agl-compositor.service.d/agl-compositor-guest.conf
 }
 
 FILES:${PN} += "\