diff options
author | Jonathan Liu <net147@gmail.com> | 2013-05-26 21:13:04 +1000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-05-29 22:07:57 +0100 |
commit | 526ca27a3cc9eed54b3b90083fe25de41a63e385 (patch) | |
tree | 859d3cea7c96689c1033e73cee1c1b5a6f3fadc3 | |
parent | 93107a133137b7aa5aebac086d20cc1b22d168c0 (diff) | |
download | poky-526ca27a3cc9eed54b3b90083fe25de41a63e385.tar.gz |
systemd: remove old /var/run workarounds
Do not clear /var/run on startup as it is a tmpfs.
Do not create empty /var/run/utmp on startup as it no longer seems
needed for systemd-update-utmp-runlevel.service to start properly.
(From OE-Core rev: 0c357b53b2c0123feeedfc202491b39eb639bfa7)
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/systemd/systemd/var-run.conf | 4 | ||||
-rw-r--r-- | meta/recipes-core/systemd/systemd_204.bb | 3 |
2 files changed, 0 insertions, 7 deletions
diff --git a/meta/recipes-core/systemd/systemd/var-run.conf b/meta/recipes-core/systemd/systemd/var-run.conf deleted file mode 100644 index c2c18e2b99..0000000000 --- a/meta/recipes-core/systemd/systemd/var-run.conf +++ /dev/null | |||
@@ -1,4 +0,0 @@ | |||
1 | # empty /var/run | ||
2 | R /var/run/* - - - - - | ||
3 | # systemd-update-utmp-runlevel.service fails to start without this | ||
4 | f /var/run/utmp 0644 root root - - | ||
diff --git a/meta/recipes-core/systemd/systemd_204.bb b/meta/recipes-core/systemd/systemd_204.bb index ec5be1f804..9664e0428c 100644 --- a/meta/recipes-core/systemd/systemd_204.bb +++ b/meta/recipes-core/systemd/systemd_204.bb | |||
@@ -20,7 +20,6 @@ inherit gtk-doc useradd pkgconfig autotools perlnative update-rc.d update-altern | |||
20 | SRC_URI = "http://www.freedesktop.org/software/systemd/systemd-${PV}.tar.xz \ | 20 | SRC_URI = "http://www.freedesktop.org/software/systemd/systemd-${PV}.tar.xz \ |
21 | file://touchscreen.rules \ | 21 | file://touchscreen.rules \ |
22 | file://modprobe.rules \ | 22 | file://modprobe.rules \ |
23 | file://var-run.conf \ | ||
24 | ${UCLIBCPATCHES} \ | 23 | ${UCLIBCPATCHES} \ |
25 | file://0001-utmp-turn-systemd-update-utmp-shutdown.service-into-.patch \ | 24 | file://0001-utmp-turn-systemd-update-utmp-shutdown.service-into-.patch \ |
26 | file://00-create-volatile.conf \ | 25 | file://00-create-volatile.conf \ |
@@ -105,8 +104,6 @@ do_install() { | |||
105 | 104 | ||
106 | install -m 0644 ${WORKDIR}/*.rules ${D}${sysconfdir}/udev/rules.d/ | 105 | install -m 0644 ${WORKDIR}/*.rules ${D}${sysconfdir}/udev/rules.d/ |
107 | 106 | ||
108 | install -m 0644 ${WORKDIR}/var-run.conf ${D}${sysconfdir}/tmpfiles.d/ | ||
109 | |||
110 | install -m 0644 ${WORKDIR}/00-create-volatile.conf ${D}${sysconfdir}/tmpfiles.d/ | 107 | install -m 0644 ${WORKDIR}/00-create-volatile.conf ${D}${sysconfdir}/tmpfiles.d/ |
111 | 108 | ||
112 | if ${@base_contains('DISTRO_FEATURES','sysvinit','true','false',d)}; then | 109 | if ${@base_contains('DISTRO_FEATURES','sysvinit','true','false',d)}; then |