mirror of
git://github.com/lxc/lxc
synced 2025-08-31 19:39:24 +00:00
tests: fix order in sys_mixed
We need to set the config item after we loaded the config obviously. Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
@@ -106,16 +106,16 @@ int main(int argc, char *argv[])
|
||||
|
||||
c->clear_config(c);
|
||||
|
||||
if (!c->set_config_item(c, "lxc.mount.auto", "sys:mixed")) {
|
||||
lxc_error("%s\n", "Failed to set config item \"lxc.mount.auto=sys:mixed\"");
|
||||
goto on_error_put;
|
||||
}
|
||||
|
||||
if (!c->load_config(c, NULL)) {
|
||||
lxc_error("%s\n", "Failed to load config for container \"sys-mixed\"");
|
||||
goto on_error_stop;
|
||||
}
|
||||
|
||||
if (!c->set_config_item(c, "lxc.mount.auto", "sys:mixed")) {
|
||||
lxc_error("%s\n", "Failed to set config item \"lxc.mount.auto=sys:mixed\"");
|
||||
goto on_error_put;
|
||||
}
|
||||
|
||||
if (!c->want_daemonize(c, true)) {
|
||||
lxc_error("%s\n", "Failed to mark container \"sys-mixed\" daemonized");
|
||||
goto on_error_stop;
|
||||
|
Reference in New Issue
Block a user