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
|
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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue