summaryrefslogtreecommitdiffstats
path: root/meta/packages/oh/qemu-config/poky-chroot-launch
blob: dbc432b66c0fcbb4d7044daaaac12c6679bae4bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash

export USER=root
export HOME=/home/root
export PATH=/sbin:/bin:/usr/sbin:/usr/bin

export DISPLAY=:1

unset DBUS_SESSION_BUS_ADDRESS

SERVICES=dbus-1

for S in $SERVICES; do
        fakeroot /etc/init.d/$S start
done

/etc/X11/Xsession &

bash -l

# The --user option in the dbus stop script breaks under chroot
/sbin/start-stop-daemon --stop  --pidfile /var/run/dbus/pid

for S in $SERVICES; do
        fakeroot /etc/init.d/$S stop
done