Skip to content

Commit

Permalink
Cleanup apt cache after grub install
Browse files Browse the repository at this point in the history
Grub installation happens in finalize.d so cleanup should be done after this.

Change-Id: I6322b8b529e31fd1b7251dd9e07cc85f442f7e81
  • Loading branch information
Endre Karlson authored and ekarlso committed Jul 22, 2014
1 parent d9d43c6 commit ab2d1a3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
9 changes: 9 additions & 0 deletions elements/dpkg/cleanup.d/99-clean-up-cache
@@ -0,0 +1,9 @@
#!/bin/bash
# Do an apt-get clean. This will free some space.

set -eu
set -o pipefail

if ! chroot ${TARGET_ROOT} mount | grep /var/cache/apt/archives; then
sudo chroot ${TARGET_ROOT} apt-get clean
fi
9 changes: 0 additions & 9 deletions elements/dpkg/post-install.d/99-clean-up-cache

This file was deleted.

0 comments on commit ab2d1a3

Please sign in to comment.