prereconfigure.patch

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

Download (551 Bytes)

View differences:

prereconfigure 2016-06-27 19:41:26.882150127 +0000
22 22
DOMAIN=$1
23 23
TARGET_DEVICE=$2
24
CMD="virsh --connect $LIBVIRT_URI change-media $DOMAIN $TARGET_DEVICE --eject --force"
24
if [[ ! -z "$DOMAIN" ]] && [[ ! -z "$TARGET_DEVICE" ]]
25
then
26
    CMD="virsh --connect $LIBVIRT_URI change-media $DOMAIN $TARGET_DEVICE \
27
        --eject --force"
25
exec_and_log "$CMD" "Could not eject CDROM $TARGET_DEVICE"
28
    exec_and_log "$CMD" "Could not eject CDROM $TARGET_DEVICE"
29
fi