diff options
author | 2012-01-23 17:26:25 -0600 | |
---|---|---|
committer | 2012-02-26 10:44:40 +0100 | |
commit | 98f41f28a08cee88c57a0faf6470b627d9eeae8a (patch) | |
tree | a5c1d1d6683a9e2f4ad75bd7de6017e005cde0ad | |
parent | lxc-clone.in: define localstatedir, as @LXCPATH@ might be defined in terms of it (diff) | |
download | lxc-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.in | 2 |
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 |