reconfigure.patch

/var/lib/one/remotes/vmm/kvm/reconfigure - Georgi Aleksandrov, 06/27/2016 07:51 PM

Download (615 Bytes)

View differences:

reconfigure 2016-06-27 19:42:14.747136155 +0000
23 23
TARGET_DEVICE=$2
24 24
ISO_PATH=$3
25
CMD="virsh --connect $LIBVIRT_URI \
26
     change-media $DOMAIN $TARGET_DEVICE $ISO_PATH --insert"
25
if [[ ! -z "$DOMAIN" ]] && [[ ! -z "$TARGET_DEVICE" ]] && [[ ! -z "$ISO_PATH" ]]
26
then
27
    CMD="virsh --connect $LIBVIRT_URI \
28
        change-media $DOMAIN $TARGET_DEVICE $ISO_PATH --insert"
27
exec_and_log "$CMD" "Could not insert CDROM $ISO_PATH to $TARGET_DEVICE"
29
    exec_and_log "$CMD" "Could not insert CDROM $ISO_PATH to $TARGET_DEVICE"
30
fi