2
0
mirror of git://github.com/lxc/lxc synced 2025-09-05 01:49:34 +00:00

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>
This commit is contained in:
Serge Hallyn
2012-01-23 17:26:25 -06:00
committed by Daniel Lezcano
parent 3920ff5cce
commit 98f41f28a0

View 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