[master] Only enable non-interactive yum plugins (#1111535)

David Shea dshea at redhat.com
Wed Nov 12 22:17:59 UTC 2014


The environment is no longer something we can control, so we must
instead control ourselves. Change the preconf.plugin_types variable so
we don't blow up when someone does an image install and also has the
changelog plugin installed.
---
 pyanaconda/packaging/yumpayload.py | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/pyanaconda/packaging/yumpayload.py b/pyanaconda/packaging/yumpayload.py
index 2843e91..3e66b7f 100644
--- a/pyanaconda/packaging/yumpayload.py
+++ b/pyanaconda/packaging/yumpayload.py
@@ -230,9 +230,8 @@ class YumPayload(PackagePayload):
 
             # Set some configuration parameters that don't get set through a config
             # file.  yum will know what to do with these.
-            # Enable all types of yum plugins. We're somewhat careful about what
-            # plugins we put in the environment.
-            self._yum.preconf.plugin_types = yum.plugins.ALL_TYPES
+            # Only enable non-interactive yum plugins
+            self._yum.preconf.plugin_types = yum.plugins.TYPE_CORE
             self._yum.preconf.enabled_plugins = YUM_PLUGINS
             self._yum.preconf.fn = "/tmp/anaconda-yum.conf"
             self._yum.preconf.root = root
-- 
2.1.0



More information about the anaconda-patches mailing list