[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH 2/3] Disable yum log file handling



From: "Brian C. Lane" <bcl redhat com>

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.
---
 pyanaconda/yuminstall.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/pyanaconda/yuminstall.py b/pyanaconda/yuminstall.py
index 1875009..3d334e2 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"):
-- 
1.7.6.4


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]