Skip to content

Commit

Permalink
B #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

(cherry picked from commit bf43d43)
  • Loading branch information
atodorov-storpool authored and rsmontero committed Oct 11, 2024
1 parent c6d9a45 commit d5b5a4d
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 d5b5a4d

Please sign in to comment.