Commit 2bce26ed by Christian Brauner Committed by Stéphane Graber

tools/lxc-start: remove c->is_defined(c) check

We do not check here whether the container is defined, because we support volatile containers. Which means the container does not need to be created for it to be started. You can just pass a configuration file as argument and start the container right away. Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
parent 3e14d759
...@@ -286,10 +286,11 @@ int main(int argc, char *argv[]) ...@@ -286,10 +286,11 @@ int main(int argc, char *argv[])
} }
} }
if (!c->is_defined(c)) { /* We do not check here whether the container is defined, because we
fprintf(stderr, "Error: container %s is not defined\n", c->name); * support volatile containers. Which means the container does not need
goto out; * to be created for it to be started. You can just pass a configuration
} * file as argument and start the container right away.
*/
if (!c->may_control(c)) { if (!c->may_control(c)) {
fprintf(stderr, "Insufficent privileges to control %s\n", c->name); fprintf(stderr, "Insufficent privileges to control %s\n", c->name);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment