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
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user