diff options
author | Zhai Edwin <edwin.zhai@intel.com> | 2011-08-02 15:24:00 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-08-04 15:01:18 +0100 |
commit | cb935833a128d67e6c1fbe745cf68a58df6470d1 (patch) | |
tree | 5e300d297d212082f685bbe78f700335071a2988 /meta/recipes-graphics/x11-common/xserver-nodm-init | |
parent | 51a6c43f6658032d67ddea349f66ddcaafe6bbce (diff) | |
download | openembedded-core-cb935833a128d67e6c1fbe745cf68a58df6470d1.tar.gz openembedded-core-cb935833a128d67e6c1fbe745cf68a58df6470d1.tar.bz2 openembedded-core-cb935833a128d67e6c1fbe745cf68a58df6470d1.zip |
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
Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
Diffstat (limited to 'meta/recipes-graphics/x11-common/xserver-nodm-init')
-rwxr-xr-x | meta/recipes-graphics/x11-common/xserver-nodm-init/xserver-nodm | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/meta/recipes-graphics/x11-common/xserver-nodm-init/xserver-nodm b/meta/recipes-graphics/x11-common/xserver-nodm-init/xserver-nodm index d8c4ba0d11..3b71983c0a 100755 --- a/meta/recipes-graphics/x11-common/xserver-nodm-init/xserver-nodm +++ b/meta/recipes-graphics/x11-common/xserver-nodm-init/xserver-nodm @@ -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 ;; |