Commit 98f41f28 by Serge Hallyn Committed by Daniel Lezcano

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: 's avatarSerge Hallyn <serge.hallyn@canonical.com> Signed-off-by: 's avatarDaniel Lezcano <dlezcano@fr.ibm.com>
parent 3920ff5c
...@@ -237,7 +237,7 @@ fi ...@@ -237,7 +237,7 @@ fi
# Create the fs as needed # Create the fs as needed
mkdir $rootfs mkdir $rootfs
if [ $backingstore = "lvm" ]; then if [ $backingstore = "lvm" ]; then
lvcreate -L $fssize -n $lxc_name $vgname || exit 1 lvcreate -L $fssize -n $lvname $vgname || exit 1
udevadm settle udevadm settle
mkfs -t $fstype $rootdev || exit 1 mkfs -t $fstype $rootdev || exit 1
mount -t $fstype $rootdev $rootfs mount -t $fstype $rootdev $rootfs
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment