[lxc-devel] [PATCH] lxc-autostart: Respect -P

Stéphane Graber stgraber at ubuntu.com
Tue Jun 17 15:31:15 UTC 2014


-P was only used for log setup and not when retrieving the container list.

Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
---
 src/lxc/lxc_autostart.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lxc/lxc_autostart.c b/src/lxc/lxc_autostart.c
index 920de67..d0e3bfa 100644
--- a/src/lxc/lxc_autostart.c
+++ b/src/lxc/lxc_autostart.c
@@ -343,7 +343,7 @@ int main(int argc, char *argv[])
 		return 1;
 	lxc_log_options_no_override();
 
-	count = list_defined_containers(NULL, NULL, &containers);
+	count = list_defined_containers(my_args.lxcpath[0], NULL, &containers);
 
 	if (count < 0)
 		return 1;
-- 
1.9.1



More information about the lxc-devel mailing list