diff options
author | Jonathan Liu <net147@gmail.com> | 2013-05-23 14:02:14 +1000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-05-24 14:14:47 +0100 |
commit | 45bf11434061e5f78a28ce96ed4cc3cb74883953 (patch) | |
tree | 9c0c6151435f5ee73df480c5aea98e55a6689a20 | |
parent | 39214157dafb806f31d2446b7f410cc5f8aa194b (diff) | |
download | poky-45bf11434061e5f78a28ce96ed4cc3cb74883953.tar.gz |
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.
(From OE-Core rev: c11ba731fb245683148d0a8485b8c4d73bf94c28)
Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-core/dbus/dbus.inc | 7 |
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() { | |||
101 | > ${D}${sysconfdir}/default/volatiles/99_dbus | 101 | > ${D}${sysconfdir}/default/volatiles/99_dbus |
102 | 102 | ||
103 | 103 | ||
104 | mkdir -p ${D}${localstatedir}/run/dbus ${D}${localstatedir}/lib/dbus | 104 | mkdir -p ${D}${localstatedir}/lib/dbus |
105 | 105 | ||
106 | chown messagebus:messagebus ${D}${localstatedir}/run/dbus ${D}${localstatedir}/lib/dbus | 106 | chown messagebus:messagebus ${D}${localstatedir}/lib/dbus |
107 | 107 | ||
108 | chown root:messagebus ${D}${libexecdir}/dbus-daemon-launch-helper | 108 | chown root:messagebus ${D}${libexecdir}/dbus-daemon-launch-helper |
109 | chmod 4755 ${D}${libexecdir}/dbus-daemon-launch-helper | 109 | chmod 4755 ${D}${libexecdir}/dbus-daemon-launch-helper |
@@ -113,6 +113,9 @@ do_install() { | |||
113 | 113 | ||
114 | # Remove empty testexec directory as we don't build tests | 114 | # Remove empty testexec directory as we don't build tests |
115 | rm -rf ${D}${libdir}/dbus-1.0/test | 115 | rm -rf ${D}${libdir}/dbus-1.0/test |
116 | |||
117 | # Remove /var/run as it is created on startup | ||
118 | rm -rf ${D}${localstatedir}/run | ||
116 | } | 119 | } |
117 | 120 | ||
118 | do_install_class-native() { | 121 | do_install_class-native() { |