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

[PATCH 5/8] Handle ks excludedocs and add an rpm macro to speed up installs.



---
 pyanaconda/packaging/yumpayload.py |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/pyanaconda/packaging/yumpayload.py b/pyanaconda/packaging/yumpayload.py
index 12f1797..faf7959 100644
--- a/pyanaconda/packaging/yumpayload.py
+++ b/pyanaconda/packaging/yumpayload.py
@@ -526,6 +526,16 @@ reposdir=/etc/yum.repos.d,/etc/anaconda.repos.d,/tmp/updates/anaconda.repos.d,/t
         # write static configs (storage, modprobe.d/anaconda.conf, network, keyboard)
         #   on upgrade, just make sure /etc/mtab is a symlink to /proc/self/mounts
 
+        if not self.data.upgrade.upgrade:
+            # this adds nofsync, which speeds things up but carries a risk of
+            # rpmdb data loss if a crash occurs. that's why we only do it on
+            # initial install and not for upgrades.
+            rpm.addMacro("__dbi_htconfig",
+                         "hash nofsync %{__dbi_other} %{__dbi_perms}")
+
+        if self.data.packages.excludeDocs:
+            rpm.addMacro("_excludedocs", "1")
+
     def install(self):
         """ Install the payload. """
         log.info("preparing transaction")
-- 
1.7.9.1


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