From 942b94cd6b1345ce7c2373a6c0cd5e689fd22dcf Mon Sep 17 00:00:00 2001 From: Paul Howarth Date: Wed, 11 Aug 2010 11:53:59 +0100 Subject: Exclude bind-mounted cache dirs from root cache Including the ccache directory /tmp/ccache and the yum cache directory /var/cache/yum in the root cache is unnecessary and can lead to the root cache tarball being an order of magnitude larger and taking 10 minutes or more to tar and compress even on a fast PC. Signed-off-by: Clark Williams --- py/mock/plugins/root_cache.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/py/mock/plugins/root_cache.py b/py/mock/plugins/root_cache.py index 8bcff23..60b8138 100644 --- a/py/mock/plugins/root_cache.py +++ b/py/mock/plugins/root_cache.py @@ -118,6 +118,8 @@ class RootCache(object): "--exclude=./proc", "--exclude=./sys", "--exclude=./dev", + "--exclude=./tmp/ccache", + "--exclude=./var/cache/yum", "."], shell=False ) -- cgit