alpine: 不允许安装 alpine 时使用 --ci

This commit is contained in:
bin456789 2023-08-04 00:04:13 +08:00
parent 52473bd5d0
commit 5e446924f1
No known key found for this signature in database
GPG Key ID: EE301B386DE6C11B

View File

@ -761,6 +761,11 @@ if ! (is_use_cloud_image || is_use_dd); then
check_ram
fi
# alpine --ci 参数无效
if [ "$distro" = alpine ] && is_use_cloud_image; then
error_and_exit "can't install alpine with cloud image"
fi
# 检查硬件架构
# x86强制使用x64
basearch=$(uname -m)