aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSerge Hallyn <serge.hallyn@canonical.com>2012-01-23 17:26:25 -0600
committerDaniel Lezcano <daniel.lezcano@free.fr>2012-02-26 10:44:40 +0100
commit98f41f28a08cee88c57a0faf6470b627d9eeae8a (patch)
treea5c1d1d6683a9e2f4ad75bd7de6017e005cde0ad
parentlxc-clone.in: define localstatedir, as @LXCPATH@ might be defined in terms of it (diff)
downloadlxc-98f41f28a08cee88c57a0faf6470b627d9eeae8a.tar.gz
lxc-98f41f28a08cee88c57a0faf6470b627d9eeae8a.tar.bz2
lxc-98f41f28a08cee88c57a0faf6470b627d9eeae8a.zip
lxc-create: fix error with lvm
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>
-rw-r--r--src/lxc/lxc-create.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lxc/lxc-create.in b/src/lxc/lxc-create.in
index af0b07a..f0532c7 100644
--- a/src/lxc/lxc-create.in
+++ b/src/lxc/lxc-create.in
@@ -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