summaryrefslogtreecommitdiff
path: root/morphlib/builder.py
diff options
context:
space:
mode:
Diffstat (limited to 'morphlib/builder.py')
-rw-r--r--morphlib/builder.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/morphlib/builder.py b/morphlib/builder.py
index 31c34b39..c5d1cb8c 100644
--- a/morphlib/builder.py
+++ b/morphlib/builder.py
@@ -150,7 +150,7 @@ class Builder(object):
# FIXME: Should put in stratum's git repo and reference here.
filename = self.get_cached_name(morph.name, 'stratum', '', '')
self.msg('Creating stratum %s at %s' % (morph.name, filename))
- self.ex.runv(['tar', '-C', self._inst, '-czf', filename, '.'])
+ morphlib.bins.create_stratum(self._inst, filename)
return filename
@property
@@ -285,9 +285,7 @@ class Builder(object):
# Unpack all strata into filesystem.
for filename in stratum_filenames:
- self.msg('Unpacking stratum %s' % filename)
- self.ex.runv(['tar', '-C', mount_point, '-xf', filename],
- as_root=True)
+ morphlib.bins.unpack_stratum(filename, mount_point)
# Create fstab.
fstab = self.tempdir.join('mnt/etc/fstab')