copr-builder: IBM Cloud machine swap can be on /dev/vdc, too
This commit is contained in:
parent
a7b3365753
commit
6436ffc139
1 changed files with 3 additions and 2 deletions
|
@ -15,8 +15,9 @@ elif test -e /dev/nvme1n1; then
|
|||
swap_device=/dev/nvme1n1
|
||||
else
|
||||
# LibVirt (on-premise) machine, or the IBM Cloud machine. Find the "large"
|
||||
# volume, that one will be used.
|
||||
for vol in /dev/vdb /dev/vdd; do
|
||||
# volume, that one will be used (IBM Cloud assigns the swap volume name
|
||||
# randomly).
|
||||
for vol in /dev/vdb /dev/vdc /dev/vdd; do
|
||||
mount | grep $vol && continue
|
||||
size=$(blockdev --getsize64 "$vol")
|
||||
test "$size" -le 150000000000 && continue
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue