aboutsummaryrefslogtreecommitdiff
path: root/bbot/bootstrap-manifest.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-04-10 13:16:11 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-04-10 13:16:11 +0200
commit810df40a0625835ad17a0a5bf3232a8d1a68e680 (patch)
tree1dc320fd821ce30a0a037b7fae151e1f027d0bbd /bbot/bootstrap-manifest.cxx
parent36e0c88e7a3912c8a2e6594841172adb9c14525b (diff)
Implement vm startup and shutdown
Diffstat (limited to 'bbot/bootstrap-manifest.cxx')
-rw-r--r--bbot/bootstrap-manifest.cxx9
1 files changed, 8 insertions, 1 deletions
diff --git a/bbot/bootstrap-manifest.cxx b/bbot/bootstrap-manifest.cxx
index 7d635ca..231e56a 100644
--- a/bbot/bootstrap-manifest.cxx
+++ b/bbot/bootstrap-manifest.cxx
@@ -221,7 +221,10 @@ namespace bbot
if (nv.empty ())
bad_value ("machine manifest expected");
- machine = machine_manifest (p, nv, false, iu);
+ machine = machine_manifest (p, nv, iu);
+
+ if (!machine.mac)
+ bad_name ("mac address must be present in machine manifest");
nv = p.next ();
if (nv.empty ())
@@ -251,6 +254,10 @@ namespace bbot
s.next ("", "1"); // Start of manifest.
s.next ("", ""); // End of manifest.
+ if (!machine.mac)
+ throw serialization (s.name (),
+ "mac address must be present in machine manifest");
+
machine.serialize (s);
toolchain.serialize (s);
bootstrap.serialize (s);