diff options
author | Bryan Evenson <bevenson@melinkcorp.com> | 2015-04-14 17:08:16 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-04-20 15:03:11 +0100 |
commit | 17c5df02e25d473e1df330ec375ab2e691b96e00 (patch) | |
tree | a5982ff38513932852f59ef964046e4a940f7af2 /meta/recipes-core | |
parent | 075f0b2c889410844352d8ac6e9d12b704d8565e (diff) | |
download | poky-17c5df02e25d473e1df330ec375ab2e691b96e00.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: 1ee8bd05042087ffdced4cb40c55d0e45b06481c)
Signed-off-by: Bryan Evenson <bevenson@melinkcorp.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-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 dfb75b261b..a086591b80 100644 --- a/meta/recipes-core/initscripts/initscripts_1.0.bb +++ b/meta/recipes-core/initscripts/initscripts_1.0.bb | |||
@@ -163,6 +163,11 @@ pkg_postinst_${PN} () { | |||
163 | systemctl $OPTS mask $SERVICE.service | 163 | systemctl $OPTS mask $SERVICE.service |
164 | done | 164 | done |
165 | fi | 165 | fi |
166 | |||
167 | # Delete any old volatile cache script, as directories may have moved | ||
168 | if [ -z "$D" ]; then | ||
169 | rm -f "/etc/volatile.cache" | ||
170 | fi | ||
166 | } | 171 | } |
167 | 172 | ||
168 | CONFFILES_${PN} += "${sysconfdir}/init.d/checkroot.sh" | 173 | CONFFILES_${PN} += "${sysconfdir}/init.d/checkroot.sh" |