From: Serge Hallyn Date: Mon, 23 Jan 2012 23:26:25 +0000 (-0600) Subject: lxc-create: fix error with lvm X-Git-Tag: lxc-0.8.0-rc2~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=98f41f28a08cee88c57a0faf6470b627d9eeae8a;p=thirdparty%2Flxc.git 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 Signed-off-by: Daniel Lezcano --- diff --git a/src/lxc/lxc-create.in b/src/lxc/lxc-create.in index af0b07abe..f0532c7f3 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