Commit 30c5d292 by Serge Hallyn Committed by Daniel Lezcano

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: 's avatarSerge Hallyn <serge.hallyn@ubuntu.com> Signed-off-by: 's avatarDaniel Lezcano <dlezcano@fr.ibm.com>
parent 09595b86
...@@ -792,7 +792,7 @@ static int setup_rootfs_pivot_root(const char *rootfs, const char *pivotdir) ...@@ -792,7 +792,7 @@ static int setup_rootfs_pivot_root(const char *rootfs, const char *pivotdir)
} }
if (!pivotdir) if (!pivotdir)
pivotdir = "mnt"; pivotdir = "lxc_putold";
/* compute the full path to pivotdir under rootfs */ /* compute the full path to pivotdir under rootfs */
rc = snprintf(path, sizeof(path), "%s/%s", rootfs, pivotdir); rc = snprintf(path, sizeof(path), "%s/%s", rootfs, pivotdir);
......
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