core: 支持 gzip 和 xz 格式云镜像

This commit is contained in:
bin456789
2023-08-01 21:55:54 +08:00
parent 5375cae96d
commit 52d7581e58

View File

@ -1127,12 +1127,13 @@ if [ "$distro" != "alpine" ]; then
add_community_repo add_community_repo
fi fi
# shellcheck disable=SC2154
if [ "$distro" = "alpine" ]; then if [ "$distro" = "alpine" ]; then
install_alpine install_alpine
elif [ "$distro" = "dd" ]; then elif [ "$distro" = "dd" ]; then
install_dd install_dd
elif is_use_cloud_image; then elif is_use_cloud_image; then
if [ "$distro" = "fedora" ]; then if [ "$img_type" = "xz" ] || [ "$img_type" = "gzip" ]; then
install_cloud_image_by_dd install_cloud_image_by_dd
else else
create_part create_part