diskimage-builder/elements/dpkg/post-install.d/99-clean-up-cache
Lucas Alvares Gomes 45173ccdb5 Adds support for post-install scripts.
Post install scripts are useful because they can perform tasks you want
to handle after the OS/application install but before the first boot
of the image. e.g: Clean the cache left by the package manager reducing
the size of the image.

Change-Id: I03e77f602192bbdce29c02999d1b57fac8051ddc
Fixes: Bug #1145786
2013-04-17 09:47:51 +01:00

6 lines
85 B
Bash
Executable file

#!/bin/bash
# Do an apt-get clean. This will free some space.
set -e
apt-get clean