diff -up /backend.py.ptch /backend.py --- /backend.py.ptch 2009-11-23 14:34:58.000000000 -0600 +++ /backend.py 2009-12-11 14:17:56.000000000 -0600 @@ -202,6 +202,21 @@ class AnacondaBackend: os.unlink(self._loopbackFile) except SystemError: pass + + def freetmp(self, anaconda): + # installs that don't use /mnt/stage2 hold the install.img on + # a tmpfs, free this ram if things are tight. + stage2img = "/tmp/install.img" + if os.path.exists(stage2img) and iutil.memAvailable() < isys.MIN_GUI_RAM: + log.info("%s exists and low memory" % stage2img ) + # free up /tmp for more memory before yum is called, + if self.mountInstallImage(anaconda, stage2img): + return DISPATCH_BACK + try: + os.unlink(stage2img) + except SystemError: + log.info("clearing /tmp failed") + return DISPATCH_BACK def kernelVersionList(self, rootPath="/"): return []