From e86addebf5a6f63c013f8deb1effed52215dd0a2 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sun, 18 Jun 2017 09:26:18 +0300 Subject: Fix: tar up only the one filesystem, not virtuals --- vmdb/plugins/rootfs_cache_plugin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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): -- cgit v1.2.1