]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
change pivotdir default to mnt
authorFerenc Wagner <wferi@niif.hu>
Fri, 11 Jun 2010 13:56:25 +0000 (15:56 +0200)
committerDaniel Lezcano <dlezcano@fr.ibm.com>
Fri, 11 Jun 2010 13:56:25 +0000 (15:56 +0200)
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>
doc/lxc.conf.sgml.in
src/lxc/conf.c

index 5f0cb678a24a3b26ca10e93006a6988a9a8a91eb..897c20429d843aa870ec9b40dd98d4783f6a990f 100644 (file)
@@ -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>
index 9565d914d876bf06e86b867cdf5400bd6cae5524..59688821421b93842c0e99bf8bd6be93495a4366 100644 (file)
@@ -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);