summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Evenson <bevenson@melinkcorp.com>2015-04-14 17:08:16 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-04-17 22:39:32 +0100
commit1f994e81717502fd9d3c2f69772ae8556e6de4cb (patch)
treede9780c1c23d3075c2768cfa414b8095026e5d95
parent433ec67686d6991d2d5f43fd1af957968da1971c (diff)
downloadpoky-1f994e81717502fd9d3c2f69772ae8556e6de4cb.tar.gz
initscripts: Remove /etc/volatile.cache on upgrade
/etc/volatile.cache is a cached copy of a script (which is generated by /etc/init.d/populate-volatile.sh) that generates the volatile filesystem directories. Since volatile.cache is a generated file, it is not necessarily changed if populate-volatile.sh is updated. As a result, the stale script can add/remove the wrong directories on the next system boot. If initscripts is being upgraded, make sure volatile.cache gets deleted. (From OE-Core rev: 3bdc098028732a4b22b1e65e5566b4cbe105fd41) Signed-off-by: Bryan Evenson <bevenson@melinkcorp.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-core/initscripts/initscripts_1.0.bb5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/recipes-core/initscripts/initscripts_1.0.bb b/meta/recipes-core/initscripts/initscripts_1.0.bb
index a665acf6e4..775816a37f 100644
--- a/meta/recipes-core/initscripts/initscripts_1.0.bb
+++ b/meta/recipes-core/initscripts/initscripts_1.0.bb
@@ -161,4 +161,9 @@ pkg_postinst_${PN} () {
161 systemctl $OPTS mask $SERVICE.service 161 systemctl $OPTS mask $SERVICE.service
162 done 162 done
163 fi 163 fi
164
165 # Delete any old volatile cache script, as directories may have moved
166 if [ -z "$D" ]; then
167 rm -f "/etc/volatile.cache"
168 fi
164} 169}