The rootfs is always located in the mount point now, let's use it. Signed-off-by: Daniel Lezcano <dlezc...@fr.ibm.com> --- src/lxc/conf.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/lxc/conf.c b/src/lxc/conf.c index aae52f4..7755837 100644 --- a/src/lxc/conf.c +++ b/src/lxc/conf.c @@ -690,10 +690,11 @@ static int setup_console(const struct lxc_rootfs *rootfs, if (!rootfs->path) return 0; - snprintf(path, sizeof(path), "%s/dev/console", rootfs->path); + snprintf(path, sizeof(path), "%s/dev/console", + rootfs->mount ? rootfs->mount : LXCROOTFSMOUNT); if (access(path, F_OK)) { - WARN("rootfs specified but no console found"); + WARN("rootfs specified but no console found at '%s'", path); return 0; } -- 1.7.0.4 ------------------------------------------------------------------------------ Virtualization is moving to the mainstream and overtaking non-virtualized environment for deploying applications. Does it make network security easier or more difficult to achieve? Read this whitepaper to separate the two and get a better understanding. http://p.sf.net/sfu/hp-phase2-d2d _______________________________________________ Lxc-devel mailing list Lxc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-devel