add detection of scsi disks

This commit is contained in:
Jochen Welzel 2021-01-13 13:14:37 +01:00
parent 4b53cb7f9e
commit c390cd2c23

View File

@ -52,7 +52,7 @@ abortFunction()
exit 1
}
VMDISKS=$(virsh domblklist $VM | egrep -o vd.)
VMDISKS=$(virsh domblklist $VM | grep qcow2 | egrep -o [vs]d.)
DISKSPEC=""
for disk in $VMDISKS
do
@ -93,7 +93,7 @@ do
virsh blockcommit $VM $disk --pivot --active >/dev/null
done
VMDISKS=$(virsh domblklist $VM | egrep vd.)
VMDISKS=$(virsh domblklist $VM | egrep [vs]d.)
for disk in $VMDISKS
do
if [[ $disk == *"snapshot"* ]]