1
0
mirror of synced 2026-05-04 07:18:39 +00:00
Files
xen-tools.xen-tools/etc/hook.d/99-clean-image
steve 7c26f68fd8 2006-05-23 12:26:13 by steve
Updated hooks to work with rpmstrap.
2006-05-23 12:26:13 +00:00

21 lines
336 B
Bash
Executable File

#!/bin/sh
#
# This script runs 'apt-get clean' on the freshly created image,
# to make sure it has the maximum available amount of free space.
#
# Steve
# --
# http://www.steve.org.uk/
prefix=$1
#
# Don't run apt-get if we're running under rpmstrap.
#
if [ -z "${rpmstrap}" ]; then
chroot ${prefix} /usr/bin/apt-get clean
fi