1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-23 22:50:09 +03:00

Do not fail when lv contains partitions

This commit is contained in:
Javi Fontan 2016-09-13 18:03:07 +02:00
parent 12fb7b5fed
commit add828930f

View File

@ -94,7 +94,7 @@ CLONE_CMD=$(cat <<EOF
set -e -o pipefail
mkdir -p $DST_DIR
$SUDO $LVCREATE -L${SIZE}M -n $LV_NAME $VG_NAME
$SUDO $LVCREATE --wipesignatures n -L${SIZE}M -n $LV_NAME $VG_NAME
$QEMU_IMG convert -O raw "$SRC_PATH" "$DEV"
rm -f "$DST_PATH"
ln -s "$DEV" "$DST_PATH"