Revision 9297c398 image_creator/os_type/unix.py

b/image_creator/os_type/unix.py
36 36
        self.cleanup_userdata()
37 37
        self.cleanup_tmp()
38 38
        self.cleanup_log()
39
        self.cleanup_mail()
39 40

  
40 41
    def cleanup_tmp(self):
41 42
        self.foreach_file('/tmp', self.g.rm_rf, maxdepth=1)
43
        self.foreach_file('/var/tmp', self.g.rm_rf, maxdepth=1)
42 44

  
43 45
    def cleanup_log(self):
44 46
        self.foreach_file('/var/log', self.g.truncate, ftype='r')
45 47

  
48
    def cleanup_mail(self):
49
        self.foreach_file('var/spool/mail', self.g.rm_rf, maxdepth=1)
50
        self.foreach_file('var/mail', self.g.rm_rf, maxdepth=1)
51

  
46 52
    def cleanup_userdata(self):
47 53
        homedirs = ['/root'] + self.ls('/home/')
48 54

  

Also available in: Unified diff