summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2018-02-14 16:43:26 +0100
committerMichał Górny <mgorny@gentoo.org>2018-02-22 17:45:08 +0100
commit952fdcf63a227c341c96206d505be5c44546dd5b (patch)
tree48bb79a1cd4e7c4f5b9f862e894c22993f64c4cd
parent3bfdf32a7ef12e9bc83ddc1ced536536feeb3d05 (diff)
downloadgemato-952fdcf63a227c341c96206d505be5c44546dd5b.tar.gz
Allow cross-device Manifests by default
Default to allowing cross-device Manifests for better compatibility. This avoids issues with overlayfs, and also makes gemato behave more like other tools (rsync, find, cp) that allow crossing filesystems by default.
-rw-r--r--gemato/find_top_level.py2
-rw-r--r--gemato/recursiveloader.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/gemato/find_top_level.py b/gemato/find_top_level.py
index d432b0e..17e743b 100644
--- a/gemato/find_top_level.py
+++ b/gemato/find_top_level.py
@@ -11,7 +11,7 @@ import gemato.compression
import gemato.manifest
-def find_top_level_manifest(path='.', allow_xdev=False, allow_compressed=False):
+def find_top_level_manifest(path='.', allow_xdev=True, allow_compressed=False):
"""
Find top-level Manifest file that covers @path (defaults
to the current directory). Returns the path to the Manifest
diff --git a/gemato/recursiveloader.py b/gemato/recursiveloader.py
index 2cd1633..0969554 100644
--- a/gemato/recursiveloader.py
+++ b/gemato/recursiveloader.py
@@ -181,7 +181,7 @@ class ManifestRecursiveLoader(object):
hashes=None, allow_create=False, sort=None,
compress_watermark=None, compress_format=None,
profile=gemato.profile.DefaultProfile(),
- max_jobs=None, allow_xdev=False):
+ max_jobs=None, allow_xdev=True):
"""
Instantiate the loader for a Manifest tree starting at top-level
Manifest @top_manifest_path.