common: 需要安装 bc

This commit is contained in:
bin456789 2023-07-05 23:31:36 +08:00
parent 37cfe313ee
commit 9003e5cffa
No known key found for this signature in database
GPG Key ID: EE301B386DE6C11B

View File

@ -122,6 +122,7 @@ setos() {
if is_virt; then
# alpine aarch64 3.18 才有 virt 直连链接
if [ "$basearch" == aarch64 ]; then
install_pkg bc
(($(echo "$releasever >= 3.18" | bc))) && flavour=virt
else
flavour=virt