mirror of
https://github.com/bin456789/reinstall.git
synced 2025-12-10 15:37:43 +08:00
core: 支持 gzip 和 xz 格式云镜像
This commit is contained in:
3
trans.sh
3
trans.sh
@ -1127,12 +1127,13 @@ if [ "$distro" != "alpine" ]; then
|
||||
add_community_repo
|
||||
fi
|
||||
|
||||
# shellcheck disable=SC2154
|
||||
if [ "$distro" = "alpine" ]; then
|
||||
install_alpine
|
||||
elif [ "$distro" = "dd" ]; then
|
||||
install_dd
|
||||
elif is_use_cloud_image; then
|
||||
if [ "$distro" = "fedora" ]; then
|
||||
if [ "$img_type" = "xz" ] || [ "$img_type" = "gzip" ]; then
|
||||
install_cloud_image_by_dd
|
||||
else
|
||||
create_part
|
||||
|
||||
Reference in New Issue
Block a user