]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Revert "lvm: check whether lxc.bdev.lvm.vg is set"
authorChristian Brauner <christian.brauner@ubuntu.com>
Tue, 15 Aug 2017 16:32:06 +0000 (18:32 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Tue, 15 Aug 2017 16:45:58 +0000 (18:45 +0200)
This reverts commit 0790b49260cbb48833367f3357b067fb851419cc.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/bdev/lxclvm.c

index 282f6ba007d50b799b682eee9cc34490830402e7..8950882da171d333f10b81aac249b64ed49c7de1 100644 (file)
@@ -307,11 +307,6 @@ int lvm_clonepaths(struct bdev *orig, struct bdev *new, const char *oldname,
                        return -1;
                }
                vg = lxc_global_config_value("lxc.bdev.lvm.vg");
-               if (!vg) {
-                       ERROR("The \"lxc.bdev.lvm.vg\" key is not set");
-                       return -1;
-               }
-
                len = strlen("/dev/") + strlen(vg) + strlen(cname) + 4 + 2;
                new->src = malloc(len);
                if (new->src)