From 9f78d886afd708addc0c9d54bc7000817463941b Mon Sep 17 00:00:00 2001 From: Naoto Yamaguchi Date: Sat, 22 Apr 2023 17:15:35 +0900 Subject: Remove tty dependency from agl-session in guest container When existing agl demo integrate to container guest, need to remove real tty device dependency. This patch remove tty device dependency from agl-session in case of container guest. Bug-AGL: SPEC-4766 Change-Id: I5fc88d19554b659271a74858fb588a9aaa9b13f6 Signed-off-by: Naoto Yamaguchi --- .../agl-container-guest/agl-session@.service | 24 ++++++++++++++++++++++ recipes-config/agl-session/agl-session_%.bbappend | 1 + .../agl-session_agl-container-guest-demo.inc | 1 + 3 files changed, 26 insertions(+) create mode 100644 recipes-config/agl-session/agl-container-guest/agl-session@.service create mode 100644 recipes-config/agl-session/agl-session_%.bbappend create mode 100644 recipes-config/agl-session/agl-session_agl-container-guest-demo.inc (limited to 'recipes-config/agl-session') diff --git a/recipes-config/agl-session/agl-container-guest/agl-session@.service b/recipes-config/agl-session/agl-container-guest/agl-session@.service new file mode 100644 index 000000000..213d88c63 --- /dev/null +++ b/recipes-config/agl-session/agl-container-guest/agl-session@.service @@ -0,0 +1,24 @@ +[Unit] +Description=AGL user session +After=systemd-user-sessions.service +Wants=dbus.socket +After=dbus.socket +After=session-c1.scope +Before=multi-user.target + +[Service] +Environment=XDG_SESSION_TYPE=wayland +ExecStart=/bin/systemctl --wait --user start agl-session.target +TimeoutStartSec=30 +# This is a template service, instantiate for desired user's name or uid +User=%i +PAMName=login +WorkingDirectory=~ +StandardInput=null +StandardOutput=journal +StandardError=journal +Restart=always +RestartSec=3s + +[Install] +WantedBy=multi-user.target diff --git a/recipes-config/agl-session/agl-session_%.bbappend b/recipes-config/agl-session/agl-session_%.bbappend new file mode 100644 index 000000000..118b81761 --- /dev/null +++ b/recipes-config/agl-session/agl-session_%.bbappend @@ -0,0 +1 @@ +require ${@bb.utils.contains('AGL_FEATURES', 'agl-container-guest-demo', 'agl-session_agl-container-guest-demo.inc', '', d)} diff --git a/recipes-config/agl-session/agl-session_agl-container-guest-demo.inc b/recipes-config/agl-session/agl-session_agl-container-guest-demo.inc new file mode 100644 index 000000000..c13abf50c --- /dev/null +++ b/recipes-config/agl-session/agl-session_agl-container-guest-demo.inc @@ -0,0 +1 @@ +FILESEXTRAPATHS:prepend := "${THISDIR}/agl-container-guest:" -- cgit 1.2.3-korg