diff --git a/image_creator/os_type/unix.py b/image_creator/os_type/unix.py index b7cde5d74cfbbfe7830d26b96a8a983037a79f22..23f9d3ea262e2a2de2df99afeec9ff12b3f474e5 100644 --- a/image_creator/os_type/unix.py +++ b/image_creator/os_type/unix.py @@ -37,6 +37,10 @@ class Unix(OSBase): self.cleanup_tmp() self.cleanup_log() self.cleanup_mail() + self.cleanup_cache() + + def cleanup_cache(self): + self.foreach_file('/var/cache', self.g.rm, ftype='r') def cleanup_tmp(self): self.foreach_file('/tmp', self.g.rm_rf, maxdepth=1)