Merge "Cleanup /tmp in the guest"

This commit is contained in:
Jenkins 2015-05-28 23:38:04 +00:00 committed by Gerrit Code Review
commit 38a3d98099
1 changed files with 3 additions and 0 deletions

View File

@ -107,6 +107,9 @@ function finalise_base () {
sudo mv $TMP_MOUNT_PATH/etc/resolv.conf.ORIG $TMP_MOUNT_PATH/etc/resolv.conf
fi
fi
# Cleanup /tmp in the guest, so there is less cruft left there
unmount_dir $TMP_MOUNT_PATH/tmp
find $TMP_MOUNT_PATH/tmp -maxdepth 1 -mindepth 1 | xargs sudo rm -rf --one-file-system
}
function compress_and_save_image () {