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:
parent
12fb7b5fed
commit
add828930f
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user