aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/udev/udev.inc
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2013-03-26 16:18:28 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-03-26 22:42:39 +0000
commit5b0257e318340c2d6c8d3b0c3fa32272d6e9526b (patch)
treef068670766f7c857f0123fc87d22d2d22f6f6e11 /meta/recipes-core/udev/udev.inc
parent94acb39385a14d54503db08351a717449e2d4b50 (diff)
downloadopenembedded-core-contrib-5b0257e318340c2d6c8d3b0c3fa32272d6e9526b.tar.gz
udev: move /run volatile entry to udev instead of initscripts
initscripts is generally installed on systemd-using images, but because it specifies that /run is a symlink to /var/run managed by volatiles it totally breaks systemd by copying/deleting /run from underneath systemd. Deleting sockets mid-boot doesn't leave systemd in a happy place. As this volatile reference of /run was introduced by udev 182, move it's reference to the udev recipe. This way it will never be present on systemd images, as systemd manages /run as a tmpfs itself. Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/recipes-core/udev/udev.inc')
-rw-r--r--meta/recipes-core/udev/udev.inc6
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/recipes-core/udev/udev.inc b/meta/recipes-core/udev/udev.inc
index bd82c34b57..e358d2d200 100644
--- a/meta/recipes-core/udev/udev.inc
+++ b/meta/recipes-core/udev/udev.inc
@@ -27,7 +27,8 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/utils/kernel/hotplug/udev-${PV}.tar.gz \
file://local.rules \
file://udev-cache \
file://udev-cache.default \
- file://init"
+ file://init \
+ file://volatiles"
inherit autotools pkgconfig update-rc.d
@@ -81,6 +82,9 @@ do_install_append () {
install -d ${D}${sysconfdir}/default
install -m 0755 ${WORKDIR}/udev-cache.default ${D}${sysconfdir}/default/udev-cache
+ install -d ${D}${sysconfdir}/default/volatiles
+ install -m 0644 ${WORKDIR}/volatiles ${D}${sysconfdir}/default/volatiles/00_udev
+
touch ${D}${sysconfdir}/udev/cache.data
install -d ${D}${sysconfdir}/udev/rules.d/