basefiles bbappend: add tmpfiles.d snippet to empty /var/run on boot

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
This commit is contained in:
Koen Kooi
2012-04-30 14:29:57 +02:00
parent d63931da7c
commit d3ed55d4e6
2 changed files with 10 additions and 1 deletions

View File

@@ -0,0 +1,2 @@
# empty /var/run
R /var/run/* - - - - -

View File

@@ -1,6 +1,8 @@
FILESEXTRAPATHS := "${THISDIR}/${PN}"
PRINC = "13"
PRINC = "14"
SRC_URI_append = " file://var-run.conf"
# Original: volatiles = "cache run log lock tmp"
# We don't any of those in volatiles, so:
@@ -32,3 +34,8 @@ do_install_angstromissue () {
echo >> ${D}${sysconfdir}/issue
fi
}
do_install_append() {
install -d ${D}${sysconfdir}/tmpfiles.d
install -m 0644 ${WORKDIR}/var-run.conf ${D}${sysconfdir}/tmpfiles.d/
}