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:
2
recipes-core/base-files/base-files/var-run.conf
Normal file
2
recipes-core/base-files/base-files/var-run.conf
Normal file
@@ -0,0 +1,2 @@
|
||||
# empty /var/run
|
||||
R /var/run/* - - - - -
|
||||
@@ -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/
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user