Skip to content

Commit

Permalink
lxc_copy: only overmount overlay subdirectory with tmpfs
Browse files Browse the repository at this point in the history
Closes #2959.
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner committed Mar 22, 2020
1 parent facdf92 commit 27d79d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lxc/tools/lxc_copy.c
Expand Up @@ -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;
Expand Down

0 comments on commit 27d79d0

Please sign in to comment.