lxc_copy: only overmount overlay subdirectory with tmpfs

Closes #2959. Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
parent facdf925
......@@ -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;
......
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