summaryrefslogtreecommitdiffstats
path: root/pyanaconda/yuminstall.py
diff options
context:
space:
mode:
authorBrian C. Lane <bcl@redhat.com>2011-12-05 12:21:32 -0800
committerBrian C. Lane <bcl@redhat.com>2011-12-05 17:20:17 -0800
commit4ba9b87d158a95398aca1c9ee2b23ceaf5e97a67 (patch)
treeae7310caaa622fc08f36d87be27017785dff86ec /pyanaconda/yuminstall.py
parentea5543b28cbac475e1bfa7bfc1fca3b46adb8378 (diff)
downloadanaconda-4ba9b87d158a95398aca1c9ee2b23ceaf5e97a67.tar.gz
anaconda-4ba9b87d158a95398aca1c9ee2b23ceaf5e97a67.tar.xz
anaconda-4ba9b87d158a95398aca1c9ee2b23ceaf5e97a67.zip
Disable yum log file handling
yum doesn't close its fd's when finished so disable it to prevent it from holding the mountpoint open. Anaconda adds its own log handler so no logs are lost by doing this.
Diffstat (limited to 'pyanaconda/yuminstall.py')
-rw-r--r--pyanaconda/yuminstall.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/pyanaconda/yuminstall.py b/pyanaconda/yuminstall.py
index 187500969..3d334e264 100644
--- a/pyanaconda/yuminstall.py
+++ b/pyanaconda/yuminstall.py
@@ -766,6 +766,10 @@ class AnacondaYum(yum.YumBase):
filelogger.setLevel(logging.INFO)
filelogger.propagate = False
+ def doFileLogSetup(self, uid, logfile):
+ # don't do the file log as it can lead to open fds
+ # being left and an inability to clean up after ourself
+ pass
def doConfigSetup(self, fn='/tmp/anaconda-yum.conf', root='/'):
if hasattr(self, "preconf"):