summaryrefslogtreecommitdiff
path: root/morphlib/builder2.py
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2013-06-20 11:09:07 +0000
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2013-06-20 11:28:11 +0000
commit38dfcc5c416a2b35373c73e39e82fecde25135e3 (patch)
tree1cb7707bce20397312a91d614a30479287abd17b /morphlib/builder2.py
parenta9d082f0592538050f0c16f147c658e6fdf1f4c0 (diff)
downloadmorph-38dfcc5c416a2b35373c73e39e82fecde25135e3.tar.gz
Require system-kind to be rootfs-tarball
Diffstat (limited to 'morphlib/builder2.py')
-rw-r--r--morphlib/builder2.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/morphlib/builder2.py b/morphlib/builder2.py
index 5de3366c..7f400049 100644
--- a/morphlib/builder2.py
+++ b/morphlib/builder2.py
@@ -669,6 +669,9 @@ class SystemBuilder(BuilderBase): # pragma: no cover
def build_and_cache(self):
system_kind = self.artifact.source.morphology['system-kind']
+ if system_kind != 'rootfs-tarball':
+ raise morphlib.Error(
+ 'System kind %s not support (only rootfs-tarball is)')
builder = self.app.system_kind_builder_factory.new(
system_kind, self.args, self.kwargs)
logging.debug('Building system with %s' % repr(builder))