diff options
author | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2013-03-11 18:15:29 +0000 |
---|---|---|
committer | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2013-03-12 11:47:51 +0000 |
commit | f2ebb9033dc6e86f508578b209b713f578b62c42 (patch) | |
tree | dd2e6b6162f55f11159ba0ec90cd9acd56388b0f /morphlib/morphologyfactory.py | |
parent | 53e8289b810a9f3effb6b1b8f5d22f5fcbf37ca9 (diff) | |
download | morph-f2ebb9033dc6e86f508578b209b713f578b62c42.tar.gz |
Emit warning if system-kind != rootfs-tarball
Diffstat (limited to 'morphlib/morphologyfactory.py')
-rw-r--r-- | morphlib/morphologyfactory.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/morphlib/morphologyfactory.py b/morphlib/morphologyfactory.py index 76905eb9..817d7fcd 100644 --- a/morphlib/morphologyfactory.py +++ b/morphlib/morphologyfactory.py @@ -110,6 +110,17 @@ class MorphologyFactory(object): raise morphlib.Error('No system-kind defined in system %s ' '(it is a mandatory field)' % filename) + if morphology['system-kind'] != 'rootfs-tarball': + self._app.status( + msg='You are using a system-kind %(kind)s. ' + 'This is deprecated and untested functionality that will ' + 'be removed in a future version of Baserock. The only ' + 'supported system-kind is rootfs-tarball. ' + 'Please convert your system morphologies to ' + 'rootfs-tarball and use morph deploy to create ' + 'disk images.', + kind=morphology['system-kind']) + name = morphology['name'] morphology.builds_artifacts = [name + '-rootfs'] |