summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2017-06-18 09:26:18 +0300
committerLars Wirzenius <liw@liw.fi>2017-06-18 15:55:15 +0300
commite86addebf5a6f63c013f8deb1effed52215dd0a2 (patch)
tree297bfd25d118b8fc446e5e22c160b2102f4ea2b3
parent6bfab5d29937989deca5a2c4eed5d98ab2690849 (diff)
downloadvmdb2-e86addebf5a6f63c013f8deb1effed52215dd0a2.tar.gz
Fix: tar up only the one filesystem, not virtuals
-rw-r--r--vmdb/plugins/rootfs_cache_plugin.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/vmdb/plugins/rootfs_cache_plugin.py b/vmdb/plugins/rootfs_cache_plugin.py
index 5be833a..ef15b57 100644
--- a/vmdb/plugins/rootfs_cache_plugin.py
+++ b/vmdb/plugins/rootfs_cache_plugin.py
@@ -48,7 +48,8 @@ class MakeCacheStepRunner(vmdb.StepRunnerInterface):
if not os.path.exists(tar_path):
vmdb.progress(
'Caching contents of {} to {}'.format(rootdir, tar_path))
- vmdb.runcmd(['tar', '-C', rootdir, '-caf', tar_path, '.'])
+ vmdb.runcmd(['tar', '-C', rootdir, '--one-file-system',
+ '-caf', tar_path, '.'])
class UnpackCacheStepRunner(vmdb.StepRunnerInterface):