summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClark Williams <williams@redhat.com>2010-07-14 13:15:07 -0500
committerClark Williams <williams@redhat.com>2010-07-31 14:06:05 -0500
commit335388a9bed7adf39aeb82b0a340acb193a92a64 (patch)
treed034a78dea13db1d662df3c4a62de83ea13b8ec1
parent95ca7f3d6b0364cae52e4ae095d49f6a3ed7c578 (diff)
downloadmock-335388a9bed7adf39aeb82b0a340acb193a92a64.tar.gz
mock-335388a9bed7adf39aeb82b0a340acb193a92a64.tar.xz
mock-335388a9bed7adf39aeb82b0a340acb193a92a64.zip
filter out proc,sys,and dev from cache file creation
Added --excludes to tar comand line to exclude proc, sys and dev files when creating root cache. Signed-off-by: Clark Williams <williams@redhat.com>
-rw-r--r--py/mock/plugins/root_cache.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/py/mock/plugins/root_cache.py b/py/mock/plugins/root_cache.py
index ffed12e..a178e99 100644
--- a/py/mock/plugins/root_cache.py
+++ b/py/mock/plugins/root_cache.py
@@ -115,6 +115,9 @@ class RootCache(object):
mock.util.do(
["tar"] + self.compressArgs + ["-cf", self.rootCacheFile,
"-C", self.rootObj.makeChrootPath(),
+ "--exclude=proc",
+ "--exclude=sys",
+ "--exclude=dev",
"."],
shell=False
)