]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxc_copy: only overmount overlay subdirectory with tmpfs 3320/head
authorChristian Brauner <christian.brauner@ubuntu.com>
Sun, 22 Mar 2020 17:28:06 +0000 (18:28 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Sun, 22 Mar 2020 17:37:38 +0000 (18:37 +0100)
Closes #2959.
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/tools/lxc_copy.c

index 2180321b89a659b89ce45e493d5d59ae3f8fbf7e..db26094ad5797e266b5ebe1d6a38a77b87d66af5 100644 (file)
@@ -766,7 +766,7 @@ static char *mount_tmpfs(const char *oldname, const char *newname,
        fd = -1;
 
        ret = fprintf(fp, "#! /bin/sh\n"
-                         "mount -n -t tmpfs -o mode=0755 none %s/%s\n",
+                         "mount -n -t tmpfs -o mode=0755 none %s/%s/overlay\n",
                      path, newname);
        if (ret < 0)
                goto err_close;