[PATCH 2/3] Disable yum log file handling

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

 



From: "Brian C. Lane" <bcl@xxxxxxxxxx>

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

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux