diff options
Diffstat (limited to 'bbot/bootstrap-manifest.cxx')
-rw-r--r-- | bbot/bootstrap-manifest.cxx | 9 |
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); |