mirror of
https://git.yoctoproject.org/poky
synced 2026-04-09 20:02:21 +02:00
xserver-nodm-init: Fix X start failure on some platform
sudo is used to run rootless X in xserver-nodm, and start to fail with "xf86OpenConsole: Cannot open /dev/tty0" error after upgrade to 1.8.1. sudo seems wait for some resource that is unavailable in early phase of booting. This patch swith to "su" for rootless X starting as a fix. [YOCTO #1211] got fixed (From OE-Core rev: cb935833a128d67e6c1fbe745cf68a58df6470d1) Signed-off-by: Zhai Edwin <edwin.zhai@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
422c7a5fcf
commit
cb3de7d9ca
@@ -35,10 +35,8 @@ case "$1" in
|
||||
chmod g+r /dev/tty[0-3]
|
||||
chmod o+rw /dev/input/*
|
||||
fi
|
||||
# Using sudo -i here has the nice side effect of making sire
|
||||
# HOME, USER and other previously problematic variables
|
||||
# are set correctly
|
||||
sudo -b -i -u $username /etc/X11/Xserver
|
||||
# Using su rather than sudo as latest 1.8.1 cause failure [YOCTO #1211]
|
||||
su -l -c '/etc/X11/Xserver&' $username
|
||||
# Wait for the desktop to say its finished loading
|
||||
dbus-wait org.matchbox_project.desktop Loaded
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user