The mnt directory has a good chance to already exist in the new root
filesystem, so creation and removal can be avoided. This also eases
use of read only root filesystems (no configuration necessary).
Signed-off-by: Ferenc Wagner <wferi@niif.hu>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
<para>
where to pivot the original root file system under
<option>lxc.rootfs</option>, specified relatively to
- that. The default is <filename>oldrootfs</filename>.
+ that. The default is <filename>mnt</filename>.
It is created if necessary, and also removed after
unmounting everything from it during container setup.
</para>
}
if (!pivotdir)
- pivotdir = "oldrootfs";
+ pivotdir = "mnt";
/* create a default mountpoint if none specified */
snprintf(path, sizeof(path), "%s/%s", rootfs, pivotdir);