From 30c5d29201b8ee1333995bea0b41f2bc673ee90b Mon Sep 17 00:00:00 2001 From: Serge Hallyn Date: Tue, 31 Jul 2012 16:07:18 +0200 Subject: [PATCH] use lxc_putold as pivot_dir put dir, not mnt Using mnt means that lxc fstab entries do not work when placed under the container's /mnt/ (i.e. /mnt/etc). Signed-off-by: Serge Hallyn Signed-off-by: Daniel Lezcano --- src/lxc/conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lxc/conf.c b/src/lxc/conf.c index 3d025c222..5e2ad8ad5 100644 --- a/src/lxc/conf.c +++ b/src/lxc/conf.c @@ -792,7 +792,7 @@ static int setup_rootfs_pivot_root(const char *rootfs, const char *pivotdir) } if (!pivotdir) - pivotdir = "mnt"; + pivotdir = "lxc_putold"; /* compute the full path to pivotdir under rootfs */ rc = snprintf(path, sizeof(path), "%s/%s", rootfs, pivotdir);