Commit f3184c77 by dlezcano

Replace configuration check by flag check

parent a9c7e2be
......@@ -118,7 +118,7 @@ int lxc_execute(const char *name, int argc, char *argv[],
goto error;
}
if (conf_has_network(name))
if (clone_flags & CLONE_NEWNET)
if (mount("sysfs", "/sys", "sysfs", 0, NULL)) {
lxc_log_syserror("failed to mount '/sys'");
/* continue: non fatal error until sysfs not per
......
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