[OE-core] [PATCH] weston-init: Let weston run without pam on distros without pam

Khem Raj raj.khem at gmail.com
Thu Jan 9 18:37:53 UTC 2020

When pam is not part of distro, user specific XDG_* environment
variables are not available since PAMName=login is in-effective and as a
result weston can not start because it direly needs XDG_RUNTIME_DIR
defined, therefore launching weston directly in systemd service will not
work, therefore call the helper script weston-start, which is also used
with sysvinit

extend enabling fbdev backend fallback to all qemu machines

Reported-by: Marek Vasut <marex at denx.de>
Signed-off-by: Khem Raj <raj.khem at gmail.com>
 .../{qemux86-64 => qemuall}/weston.ini        |  0
 .../wayland/weston-init/qemux86/weston.ini    |  2 --
 .../wayland/weston-init/weston at .service       | 34 ++++---------------
 3 files changed, 6 insertions(+), 30 deletions(-)
 rename meta/recipes-graphics/wayland/weston-init/{qemux86-64 => qemuall}/weston.ini (100%)
 delete mode 100644 meta/recipes-graphics/wayland/weston-init/qemux86/weston.ini

diff --git a/meta/recipes-graphics/wayland/weston-init/qemux86-64/weston.ini b/meta/recipes-graphics/wayland/weston-init/qemuall/weston.ini
similarity index 100%
rename from meta/recipes-graphics/wayland/weston-init/qemux86-64/weston.ini
rename to meta/recipes-graphics/wayland/weston-init/qemuall/weston.ini
diff --git a/meta/recipes-graphics/wayland/weston-init/qemux86/weston.ini b/meta/recipes-graphics/wayland/weston-init/qemux86/weston.ini
deleted file mode 100644
index 17ebd7fdab..0000000000
--- a/meta/recipes-graphics/wayland/weston-init/qemux86/weston.ini
+++ /dev/null
@@ -1,2 +0,0 @@
diff --git a/meta/recipes-graphics/wayland/weston-init/weston at .service b/meta/recipes-graphics/wayland/weston-init/weston at .service
index 9ecf2ab069..39e193014a 100644
--- a/meta/recipes-graphics/wayland/weston-init/weston at .service
+++ b/meta/recipes-graphics/wayland/weston-init/weston at .service
@@ -1,37 +1,15 @@
-Description=Weston Wayland Compositor (on tty7)
+Description=Weston Wayland Compositor
-Conflicts=getty at tty7.service plymouth-quit.service
-After=systemd-user-sessions.service getty at tty7.service plymouth-quit-wait.service
+After=systemd-user-sessions.service plymouth-quit-wait.service
-# Log us in via PAM so we get our XDG & co. environment and
-# are treated as logged in so we can use the tty:
-# Grab tty7
-# stderr to journal so our logging doesn't get thrown into /dev/null
-# Weston does not successfully change VT, nor does systemd place us on
-# the VT it just activated for us. Switch manually:
-ExecStartPre=/usr/bin/chvt 7
-ExecStart=/usr/bin/weston --log=${XDG_RUNTIME_DIR}/weston.log $OPTARGS
+ExecStart=/usr/bin/weston-start -v -e -- $OPTARGS

More information about the Openembedded-core mailing list