Comment 5 for bug 442456

Revision history for this message
Wesley Schwengle (wesleys) wrote :

I agree with Noel that /var doesn't need to be checked for free diskspace for the dist-upgrade.

We've given ariel the following patch, where we don't check /var/ but /var/apt/archive instead. The upgrade process continues as expected. The patch is checking archivedir twice, so I guess it is safe to say that /var can be removed from the check and we don't have to explicitly check /var/cache/apt.

--- DistUpgradeCache.py.orig 2009-10-04 20:55:51.000000000 +0200
+++ DistUpgradeCache.py 2009-10-04 20:54:56.000000000 +0200
 -989,7 +989,7 @@
             if not os.path.exists(aufs_rw_dir):
                 os.makedirs(aufs_rw_dir)
         logging.debug("cache aufs_rw_dir: %s" % aufs_rw_dir)
- for d in ["/","/usr","/var","/boot", archivedir, aufs_rw_dir, "/home"]:
+ for d in ["/","/usr","/var/cache/apt","/boot", archivedir, aufs_rw_dir, "/home"]:
             d = os.path.realpath(d)
             fs_id = make_fs_id(d)
             st = os.statvfs(d)