tools/libvirt_test.sh: merge two similar switch statements
No need for more switching than just one. Signed-off-by: Ondřej Budai <ondrej@budai.cz>
This commit is contained in:
parent
385dc4254e
commit
89b71d339e
1 changed files with 11 additions and 16 deletions
|
|
@ -270,29 +270,24 @@ elif [[ $ARCH == 's390x' ]]; then
|
|||
--network network=integration,mac=34:49:22:B0:83:30
|
||||
else
|
||||
case "${ID}-${VERSION_ID}" in
|
||||
"rhel-8"* | "centos-8")
|
||||
"rhel-8"*)
|
||||
# was 1024 before 8.9
|
||||
MIN_RAM="1536"
|
||||
;;
|
||||
"rhel-9"* | "centos-9")
|
||||
MIN_RAM="1536"
|
||||
;;
|
||||
*)
|
||||
echo "unsupported distro: ${ID}-${VERSION_ID}"
|
||||
exit 1;;
|
||||
esac
|
||||
|
||||
case "${ID}-${VERSION_ID}" in
|
||||
"rhel-8"* | "centos-8")
|
||||
NVRAM_TEMPLATE="nvram_template=/usr/share/edk2/ovmf/OVMF_VARS.fd"
|
||||
;;
|
||||
"centos-9" )
|
||||
# Disable secure boot for CS9 due to bug bz#2108646
|
||||
NVRAM_TEMPLATE="firmware.feature0.name=secure-boot,firmware.feature0.enabled=no"
|
||||
;;
|
||||
"centos-8")
|
||||
MIN_RAM="1536"
|
||||
NVRAM_TEMPLATE="nvram_template=/usr/share/edk2/ovmf/OVMF_VARS.fd"
|
||||
;;
|
||||
"rhel-9"*)
|
||||
MIN_RAM="1536"
|
||||
NVRAM_TEMPLATE=""
|
||||
;;
|
||||
"centos-9")
|
||||
MIN_RAM="1536"
|
||||
# Disable secure boot for CS9 due to bug bz#2108646
|
||||
NVRAM_TEMPLATE="firmware.feature0.name=secure-boot,firmware.feature0.enabled=no"
|
||||
;;
|
||||
*)
|
||||
echo "unsupported distro: ${ID}-${VERSION_ID}"
|
||||
exit 1;;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue