prereconfigure.patch
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 |