diff options
author | 2015-04-14 17:08:16 -0400 | |
---|---|---|
committer | 2015-04-17 22:39:32 +0100 | |
commit | 1f994e81717502fd9d3c2f69772ae8556e6de4cb (patch) | |
tree | de9780c1c23d3075c2768cfa414b8095026e5d95 | |
parent | 433ec67686d6991d2d5f43fd1af957968da1971c (diff) | |
download | poky-1f994e81717502fd9d3c2f69772ae8556e6de4cb.tar.gz poky-1f994e81717502fd9d3c2f69772ae8556e6de4cb.tar.bz2 poky-1f994e81717502fd9d3c2f69772ae8556e6de4cb.zip |
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.bb | 5 |
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} () { systemctl $OPTS mask $SERVICE.service done fi + + # Delete any old volatile cache script, as directories may have moved + if [ -z "$D" ]; then + rm -f "/etc/volatile.cache" + fi } |