Skip to content

Commit

Permalink
B OpenNebula#6689: append --block to change-media call in reconfigure
Browse files Browse the repository at this point in the history
when the $ISO_PATH is a block device
  • Loading branch information
atodorov-storpool authored Aug 9, 2024
1 parent 3d527c3 commit bf43d43
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/vmm_mad/remotes/kvm/reconfigure
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ ISO_PATH=$3

if [[ -n "$DOMAIN" ]] && [[ -n "$TARGET_DEVICE" ]] && [[ -n "$ISO_PATH" ]]
then
test -b "$ISO_PATH" && EXTRA_ARGS="--block" || EXTRA_ARGS=""
CMD="virsh --connect $LIBVIRT_URI \
change-media $DOMAIN $TARGET_DEVICE $ISO_PATH --insert"
change-media $DOMAIN $TARGET_DEVICE $ISO_PATH --insert $EXTRA_ARGS"

exec_and_log "$CMD" "Could not insert CDROM $ISO_PATH to $TARGET_DEVICE"
fi
Expand Down

0 comments on commit bf43d43

Please sign in to comment.