Skip to content

Commit 08fbdd6

Browse files
author
Denis Valitov
committed
add fix
1 parent 6e702e3 commit 08fbdd6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

run

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ options:
9797
-c, --clean remove kernel and initramfs volumes after VM
9898
shutdown
9999
--shared using scsi disks as shared disk (The qcow2
100-
format is also replaced with raw.) Work if -f is enabled.
100+
format is also replaced with raw.)
101101
-G, --gdb [HOST]:PORT Enable QEMU GDB stub via HOST:PORT
102102
-k, --kopt PARAM pass a kernel option
103103
-K, --keep don't shutdown VM immediately
@@ -706,7 +706,9 @@ HOST=$(virsh hostname)
706706
printf "\b\b\b: $HOST"
707707
for volspec in "${VOLUMES[@]}"; do
708708
IFS=':' read -ra volume <<< "$volspec"
709+
adddev::lock
709710
vm::vol::upload "${volume[@]}"
711+
adddev::unlock
710712
done
711713
[ -n "$FORCE" ] && vm::remove "$VMNAME"
712714

0 commit comments

Comments
 (0)