Commit 1a2cf89d by Felix Abecassis

conf: do not run the "mount" hooks twice

Regression introduced by 8353b4c9Signed-off-by: 's avatarFelix Abecassis <fabecassis@nvidia.com>
parent 55fc780b
...@@ -3368,7 +3368,7 @@ int lxc_setup(struct lxc_handler *handler) ...@@ -3368,7 +3368,7 @@ int lxc_setup(struct lxc_handler *handler)
} }
ret = run_lxc_hooks(name, "mount", lxc_conf, NULL); ret = run_lxc_hooks(name, "mount", lxc_conf, NULL);
if (run_lxc_hooks(name, "mount", lxc_conf, NULL)) { if (ret < 0) {
ERROR("Failed to run mount hooks"); ERROR("Failed to run mount hooks");
return -1; return -1;
} }
......
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