tools: make overlay valid backend

So far, users could only create overlay snapshots by specifying -B overlayfs and not with -B overlay. This adds support for -B overlay. Signed-off-by: 's avatarChristian Brauner <christian.brauner@canonical.com>
parent 2c34c8f2
...@@ -620,6 +620,8 @@ static int my_parser(struct lxc_arguments *args, int c, char *arg) ...@@ -620,6 +620,8 @@ static int my_parser(struct lxc_arguments *args, int c, char *arg)
return -1; return -1;
break; break;
case 'B': case 'B':
if (strcmp(arg, "overlay") == 0)
arg = "overlayfs";
args->bdevtype = arg; args->bdevtype = arg;
break; break;
case 't': case 't':
......
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