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 <serge.hallyn@ubuntu.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
This commit is contained in:
Serge Hallyn 2012-07-31 16:07:18 +02:00 committed by Daniel Lezcano
parent 09595b86de
commit 30c5d29201

View File

@ -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);