]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxc-create: fix error with lvm
authorSerge Hallyn <serge.hallyn@canonical.com>
Mon, 23 Jan 2012 23:26:25 +0000 (17:26 -0600)
committerDaniel Lezcano <daniel.lezcano@free.fr>
Sun, 26 Feb 2012 09:44:40 +0000 (10:44 +0100)
when --lvname is given, use that for lvcreate instead of using
lxc_name, which is wrong.

Signed-off-by: Serge Hallyn <serge.hallyn@canonical.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
src/lxc/lxc-create.in

index af0b07abecb5edad42ed57f78de53280c62a533f..f0532c7f376eb9f5fb6bf10f55477fcb39077048 100644 (file)
@@ -237,7 +237,7 @@ fi
 # Create the fs as needed
 mkdir $rootfs
 if [ $backingstore = "lvm" ]; then
-    lvcreate -L $fssize -n $lxc_name $vgname || exit 1
+    lvcreate -L $fssize -n $lvname $vgname || exit 1
     udevadm settle
     mkfs -t $fstype $rootdev || exit 1
     mount -t $fstype $rootdev $rootfs