Do not fail when lv contains partitions

This commit is contained in:
Javi Fontan committed 2016-09-13 18:03:07 +02:00
1 parent 12fb7b5fed
commit add828930f
1 file changed
+1 -1
+1 -1
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"