You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
328 B
25 lines
328 B
#!/bin/sh
|
|
|
|
export INSTALLDIR=$1
|
|
|
|
. ./builder_setup
|
|
|
|
set -e
|
|
|
|
if ! [ $# -eq 1 ]; then
|
|
echo "usage $0 <mount_point>"
|
|
exit 1
|
|
fi
|
|
|
|
|
|
if ! [ -d $INSTALLDIR ]; then
|
|
echo $INSTALLDIR does not exist
|
|
exit 1
|
|
fi
|
|
|
|
echo "--> Cleaning up image file..."
|
|
$SCRIPTSDIR/09_cleanup.sh
|
|
|
|
echo "--> Compacting image file..."
|
|
fstrim -v "$INSTALLDIR"
|