summaryrefslogtreecommitdiff
path: root/morphlib/stagingarea.py
diff options
context:
space:
mode:
authorAdam Coldrick <adam.coldrick@codethink.co.uk>2015-02-04 09:39:38 +0000
committerAdam Coldrick <adam.coldrick@codethink.co.uk>2015-04-14 16:32:44 +0000
commit2c9804e5ca217970d8b6d00670773051b141dded (patch)
tree2299fee85d3c1004b730d79a1fa91f7bc173641d /morphlib/stagingarea.py
parent177d8ff42e9201b3e06c02e25406dd74c10236c8 (diff)
downloadmorph-2c9804e5ca217970d8b6d00670773051b141dded.tar.gz
Use overlayfs when building systems
This will allow us to cache systems as a list of chunks and a small filesystem delta, rather than a massive tarball. Change-Id: Ic5182137ddd88dc9679e0941550d08954cb4d306
Diffstat (limited to 'morphlib/stagingarea.py')
-rw-r--r--morphlib/stagingarea.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/morphlib/stagingarea.py b/morphlib/stagingarea.py
index 8c2781aa..ae11dea7 100644
--- a/morphlib/stagingarea.py
+++ b/morphlib/stagingarea.py
@@ -87,6 +87,14 @@ class StagingArea(object):
return self._dir_for_source(source, 'inst')
+ def overlay_upperdir(self, source):
+ '''Create a directory to be upperdir for overlayfs, and return it.'''
+ return self._dir_for_source(source, 'overlay_upper')
+
+ def overlaydir(self, source):
+ '''Create a directory to be a mount point for overlayfs, return it'''
+ return self._dir_for_source(source, 'overlay')
+
def relative(self, filename):
'''Return a filename relative to the staging area.'''