[PATCH 1/2] DNFPayload: direct conf.persistdir to the sysimage.

akozumpl at redhat.com akozumpl at redhat.com
Mon Sep 30 14:45:03 UTC 2013


From: Ales Kozumplik <ales at redhat.com>

So we get the history on the target.
---
 pyanaconda/packaging/dnfpayload.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pyanaconda/packaging/dnfpayload.py b/pyanaconda/packaging/dnfpayload.py
index b019723..7ee3344 100644
--- a/pyanaconda/packaging/dnfpayload.py
+++ b/pyanaconda/packaging/dnfpayload.py
@@ -135,7 +135,6 @@ class DNFPayload(packaging.PackagePayload):
     def _configure(self):
         self._base = dnf.Base()
         conf = self._base.conf
-        conf.persistdir = DNF_CACHE_DIR
         self._base.cache_c.prefix = DNF_CACHE_DIR
         self._base.cache_c.suffix = 'default'
         conf.logdir = '/tmp/payload-logs'
@@ -144,8 +143,9 @@ class DNFPayload(packaging.PackagePayload):
         conf.errorlevel = 0
         self._base.logging.setup_from_dnf_conf(conf)
 
-        conf.installroot = constants.ROOT_PATH
         conf.releasever = self._getReleaseVersion(None)
+        conf.installroot = constants.ROOT_PATH
+        conf.prepend_installroot('persistdir')
 
         # NSS won't survive the forking we do to shield out chroot during
         # transaction, disable it in RPM:
-- 
1.8.3.1



More information about the anaconda-patches mailing list