Merge "Cleanup /tmp in the guest"
This commit is contained in:
commit
38a3d98099
@ -107,6 +107,9 @@ function finalise_base () {
|
|||||||
sudo mv $TMP_MOUNT_PATH/etc/resolv.conf.ORIG $TMP_MOUNT_PATH/etc/resolv.conf
|
sudo mv $TMP_MOUNT_PATH/etc/resolv.conf.ORIG $TMP_MOUNT_PATH/etc/resolv.conf
|
||||||
fi
|
fi
|
||||||
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 () {
|
function compress_and_save_image () {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user