mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-15 18:21:36 +00:00
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:
parent
09595b86de
commit
30c5d29201
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user