summaryrefslogtreecommitdiff
path: root/meta/recipes-core/dbus
diff options
context:
space:
mode:
authorJonathan Liu <net147@gmail.com>2013-05-23 14:02:14 +1000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-05-24 14:07:03 +0100
commitc11ba731fb245683148d0a8485b8c4d73bf94c28 (patch)
tree5a0a3c3eea4b9d6a4a75f3d500852ae9e6693324 /meta/recipes-core/dbus
parentffd8f05e5548500199c9b04a174067811ad2c5e7 (diff)
downloadopenembedded-core-c11ba731fb245683148d0a8485b8c4d73bf94c28.tar.gz
openembedded-core-c11ba731fb245683148d0a8485b8c4d73bf94c28.tar.bz2
openembedded-core-c11ba731fb245683148d0a8485b8c4d73bf94c28.zip
dbus: remove /var/run from package as it is created on startup
/var/run is a tmpfs that is created on startup. For sysvinit, /var/run/dbus is created by populate-volatiles.sh. For systemd, /var/run/dbus is created implicitly by dbus.socket when creating a listen stream socket at /var/run/dbus/system_bus_socket. Signed-off-by: Jonathan Liu <net147@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/recipes-core/dbus')
-rw-r--r--meta/recipes-core/dbus/dbus.inc7
1 files changed, 5 insertions, 2 deletions
diff --git a/meta/recipes-core/dbus/dbus.inc b/meta/recipes-core/dbus/dbus.inc
index 2be5bda101..8055824aee 100644
--- a/meta/recipes-core/dbus/dbus.inc
+++ b/meta/recipes-core/dbus/dbus.inc
@@ -101,9 +101,9 @@ do_install() {
> ${D}${sysconfdir}/default/volatiles/99_dbus
- mkdir -p ${D}${localstatedir}/run/dbus ${D}${localstatedir}/lib/dbus
+ mkdir -p ${D}${localstatedir}/lib/dbus
- chown messagebus:messagebus ${D}${localstatedir}/run/dbus ${D}${localstatedir}/lib/dbus
+ chown messagebus:messagebus ${D}${localstatedir}/lib/dbus
chown root:messagebus ${D}${libexecdir}/dbus-daemon-launch-helper
chmod 4755 ${D}${libexecdir}/dbus-daemon-launch-helper
@@ -113,6 +113,9 @@ do_install() {
# Remove empty testexec directory as we don't build tests
rm -rf ${D}${libdir}/dbus-1.0/test
+
+ # Remove /var/run as it is created on startup
+ rm -rf ${D}${localstatedir}/run
}
do_install_class-native() {