copr-builder: IBM Cloud machine swap can be on /dev/vdc, too

This commit is contained in:
Pavel Raiskup 2022-01-07 16:14:52 +01:00
parent a7b3365753
commit 6436ffc139

View file

@ -15,8 +15,9 @@ elif test -e /dev/nvme1n1; then
swap_device=/dev/nvme1n1 swap_device=/dev/nvme1n1
else else
# LibVirt (on-premise) machine, or the IBM Cloud machine. Find the "large" # LibVirt (on-premise) machine, or the IBM Cloud machine. Find the "large"
# volume, that one will be used. # volume, that one will be used (IBM Cloud assigns the swap volume name
for vol in /dev/vdb /dev/vdd; do # randomly).
for vol in /dev/vdb /dev/vdc /dev/vdd; do
mount | grep $vol && continue mount | grep $vol && continue
size=$(blockdev --getsize64 "$vol") size=$(blockdev --getsize64 "$vol")
test "$size" -le 150000000000 && continue test "$size" -le 150000000000 && continue