FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo User

 
 
LinkBack Thread Tools
 
Old 03-02-2012, 04:02 PM
David Lehman
 
Default 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

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

Thread Tools




All times are GMT. The time now is 08:24 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org