diff options
author | Richard Purdie <richard@openedhand.com> | 2008-01-30 15:36:14 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2008-01-30 15:36:14 +0000 |
commit | f55e6e493e881453975fb038d88fcf13474ef42f (patch) | |
tree | 026b681dc4ac1680c64b51f5c6fbccca0688bed0 /meta/packages/oh | |
parent | 66bc1c7346edab13cec53015be35a805fb651caa (diff) | |
download | openembedded-core-f55e6e493e881453975fb038d88fcf13474ef42f.tar.gz openembedded-core-f55e6e493e881453975fb038d88fcf13474ef42f.tar.bz2 openembedded-core-f55e6e493e881453975fb038d88fcf13474ef42f.tar.xz openembedded-core-f55e6e493e881453975fb038d88fcf13474ef42f.zip |
Add chroot scripts to qemu-config package
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3626 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/oh')
-rw-r--r-- | meta/packages/oh/qemu-config.bb | 12 | ||||
-rwxr-xr-x | meta/packages/oh/qemu-config/poky-chroot-init | 7 | ||||
-rwxr-xr-x | meta/packages/oh/qemu-config/poky-chroot-launch | 26 |
3 files changed, 41 insertions, 4 deletions
diff --git a/meta/packages/oh/qemu-config.bb b/meta/packages/oh/qemu-config.bb index 741fb8942..3eccab99e 100644 --- a/meta/packages/oh/qemu-config.bb +++ b/meta/packages/oh/qemu-config.bb @@ -1,13 +1,15 @@ DESCRIPTION = "Adds scripts to use distcc on the host system under qemu" LICENSE = "GPL" RDEPENDS = "distcc task-poky-nfs-server fakeroot oprofileui-server rsync bash" -PR = "r10" +PR = "r11" SRC_URI = "file://distcc.sh \ file://anjuta-remote-run \ file://exports \ - file://shutdown.desktop \ - file://shutdown.png \ + file://shutdown.desktop \ + file://shutdown.png \ + file://poky-chroot-init \ + file://poky-chroot-launch \ file://qemu-autostart" S = "${WORKDIR}" @@ -23,6 +25,8 @@ do_install() { install -d ${D}${bindir} install -m 0755 anjuta-remote-run ${D}${bindir}/ + install -m 0775 poky-chroot-init ${D}${bindir}/ + install -m 0775 poky-chroot-launch ${D}${bindir}/ install -d ${D}${datadir}/applications install -m 0644 shutdown.desktop ${D}${datadir}/applications/ @@ -31,7 +35,7 @@ do_install() { install -m 0644 shutdown.png ${D}${datadir}/pixmaps/ install -d ${D}/etc/init.d - install qemu-autostart ${D}/etc/init.d + install qemu-autostart ${D}/etc/init.d/ } inherit update-rc.d diff --git a/meta/packages/oh/qemu-config/poky-chroot-init b/meta/packages/oh/qemu-config/poky-chroot-init new file mode 100755 index 000000000..0afa50510 --- /dev/null +++ b/meta/packages/oh/qemu-config/poky-chroot-init @@ -0,0 +1,7 @@ +#!/bin/bash + +export USER=root +export HOME=/home/root +export PATH=/sbin:/bin:/usr/sbin:/usr/bin + +fakeroot ipkg configure diff --git a/meta/packages/oh/qemu-config/poky-chroot-launch b/meta/packages/oh/qemu-config/poky-chroot-launch new file mode 100755 index 000000000..63d98d936 --- /dev/null +++ b/meta/packages/oh/qemu-config/poky-chroot-launch @@ -0,0 +1,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 + +for S in $SERVICES; do + fakeroot /etc/init.d/$S stop +done + +# The --user option in the dbus stop script breaks under chroot +/sbin/start-stop-daemon --stop --pidfile /var/run/dbus/pid |