mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-05-07 05:10:20 +00:00
systemd: cleanup /var/run on boot and create /var/run/utmp
* Angstrom uses /var/run cleanup because: Some apps (e.g. avahi-daemon) to clean up their old-style pid files and fail to start every other boot. Se we let systemd clean it on boot. Which seems general enough, so lets move var-run.conf from base-files.bbappend to systemd recipe. * /var/run/utmp was created by volatiles before, but without sysvinit installed systemd-update-utmp-runlevel.service fails to start without this file Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
This commit is contained in:
@@ -0,0 +1,4 @@
|
|||||||
|
# empty /var/run
|
||||||
|
R /var/run/* - - - - -
|
||||||
|
# systemd-update-utmp-runlevel.service fails to start without this
|
||||||
|
f /var/run/utmp 0644 root root - -
|
||||||
@@ -19,7 +19,7 @@ inherit gitpkgv
|
|||||||
PKGV = "v${GITPKGVTAG}"
|
PKGV = "v${GITPKGVTAG}"
|
||||||
|
|
||||||
PV = "git"
|
PV = "git"
|
||||||
PR = "r2"
|
PR = "r3"
|
||||||
|
|
||||||
inherit useradd pkgconfig autotools vala perlnative
|
inherit useradd pkgconfig autotools vala perlnative
|
||||||
|
|
||||||
@@ -29,6 +29,7 @@ SRC_URI = "git://anongit.freedesktop.org/systemd/systemd;protocol=git \
|
|||||||
file://gtk-doc.make \
|
file://gtk-doc.make \
|
||||||
file://touchscreen.rules \
|
file://touchscreen.rules \
|
||||||
file://modprobe.rules \
|
file://modprobe.rules \
|
||||||
|
file://var-run.conf \
|
||||||
"
|
"
|
||||||
LDFLAGS_libc-uclibc_append = " -lrt"
|
LDFLAGS_libc-uclibc_append = " -lrt"
|
||||||
|
|
||||||
@@ -82,6 +83,8 @@ do_install() {
|
|||||||
touch ${D}${sysconfdir}/machine-id
|
touch ${D}${sysconfdir}/machine-id
|
||||||
|
|
||||||
install -m 0644 ${WORKDIR}/*.rules ${D}${sysconfdir}/udev/rules.d/
|
install -m 0644 ${WORKDIR}/*.rules ${D}${sysconfdir}/udev/rules.d/
|
||||||
|
|
||||||
|
install -m 0644 ${WORKDIR}/var-run.conf ${D}${sysconfdir}/tmpfiles.d/
|
||||||
}
|
}
|
||||||
|
|
||||||
python populate_packages_prepend (){
|
python populate_packages_prepend (){
|
||||||
|
|||||||
Reference in New Issue
Block a user