Commit 3103609d by Ferenc Wagner Committed by Daniel Lezcano

change pivotdir default to mnt

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: 's avatarFerenc Wagner <wferi@niif.hu> Signed-off-by: 's avatarDaniel Lezcano <dlezcano@fr.ibm.com>
parent 64b90b3d
......@@ -416,7 +416,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
<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>
......
......@@ -545,7 +545,7 @@ static int setup_rootfs_pivot_root(const char *rootfs, const char *pivotdir)
}
if (!pivotdir)
pivotdir = "oldrootfs";
pivotdir = "mnt";
/* create a default mountpoint if none specified */
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