From ccce52fd218df7d0b40349954b4141c7f419fb98 Mon Sep 17 00:00:00 2001 From: Endre Karlson Date: Tue, 15 Jul 2014 19:56:26 +0200 Subject: [PATCH] Cleanup apt cache after grub install Grub installation happens in finalize.d so cleanup should be done after this. This reapplies I6322b8b529e31fd1b7251dd9e07cc85f442f7e81 after the revert, but working. Change-Id: Ie1873e64d407552da37a8dbedc13c3adbf79c085 --- .../dpkg/{post-install.d => finalise.d}/99-clean-up-cache | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) rename elements/dpkg/{post-install.d => finalise.d}/99-clean-up-cache (56%) diff --git a/elements/dpkg/post-install.d/99-clean-up-cache b/elements/dpkg/finalise.d/99-clean-up-cache similarity index 56% rename from elements/dpkg/post-install.d/99-clean-up-cache rename to elements/dpkg/finalise.d/99-clean-up-cache index 487c3474..8046c8a0 100755 --- a/elements/dpkg/post-install.d/99-clean-up-cache +++ b/elements/dpkg/finalise.d/99-clean-up-cache @@ -4,6 +4,4 @@ set -eu set -o pipefail -if ! mount | grep /var/cache/apt/archives; then - apt-get clean -fi +apt-get clean