aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-core/initscripts/initscripts_1.0.bbappend
blob: f17cf0707074fe589662cebc9d10c22bdfcf077b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
PR .= ".3"

FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"

do_install_append () {
	cat <<-EOF >> ${D}${sysconfdir}/init.d/populate-volatile.sh
touch /var/log/lastlog
test ! -x /sbin/restorecon || /sbin/restorecon -RF /var/volatile/ /var/lib /run \
    /etc/resolv.conf /etc/adjtime
EOF
	sed -i '/mount -n -o remount,$rootmode/i\test ! -x /sbin/restorecon || /sbin/restorecon -RF /run' \
	    ${D}${sysconfdir}/init.d/checkroot.sh
}