diff options
author | David Lehman <dlehman@redhat.com> | 2012-02-29 18:17:14 -0600 |
---|---|---|
committer | David Lehman <dlehman@redhat.com> | 2012-03-02 12:58:41 -0600 |
commit | 4cfef034b8679089e08f1ac7d847b51a801f8752 (patch) | |
tree | ce7a70bbc3bd49a24b3655e84815102a30fe3220 /pyanaconda | |
parent | 08a02a395c48fe16270890ff3d8fea3552ebcb5c (diff) | |
download | anaconda-4cfef034b8679089e08f1ac7d847b51a801f8752.tar.gz anaconda-4cfef034b8679089e08f1ac7d847b51a801f8752.tar.xz anaconda-4cfef034b8679089e08f1ac7d847b51a801f8752.zip |
Handle ks excludedocs and add an rpm macro to speed up installs.
Diffstat (limited to 'pyanaconda')
-rw-r--r-- | 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 12f179797..faf7959a8 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") |