The 'create' operation needs uxc to reload it's configuration, so after
adding the container to uxc' persistent state tracking the follow-up
call to create the run-time can find it.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
return ret;
}
+static void reload_conf(void)
+{
+ blob_buf_free(&conf);
+ conf_load(false);
+}
+
int main(int argc, char **argv)
{
int ret = EINVAL;
ret = uxc_set(argv[2], argv[3], autostart, true);
if (ret)
goto runtime_out;
- }
+ reload_conf();
+ }
ret = uxc_create(argv[2], false);
} else
goto usage_out;