mirror of
https://github.com/bin456789/reinstall.git
synced 2025-02-20 05:33:07 +08:00
gentoo: 修改云镜像地址
This commit is contained in:
parent
ad89a69f6a
commit
24b6e7f922
23
reinstall.sh
23
reinstall.sh
@ -1293,20 +1293,21 @@ Continue?
|
|||||||
mirror=https://distfiles.gentoo.org # cdn77
|
mirror=https://distfiles.gentoo.org # cdn77
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if is_use_cloud_image; then
|
dir=releases/$basearch_alt/autobuilds
|
||||||
if [ "$basearch_alt" = arm64 ]; then
|
|
||||||
error_and_exit 'Not support arm64 for gentoo cloud image.'
|
|
||||||
fi
|
|
||||||
|
|
||||||
# openrc 镜像没有附带兼容 cloud-init 的网络管理器
|
if is_use_cloud_image; then
|
||||||
eval ${step}_img=$mirror/experimental/$basearch_alt/openstack/gentoo-openstack-$basearch_alt-systemd-latest.qcow2
|
# 使用 systemd 且没有 cloud-init
|
||||||
|
prefix=di-$basearch_alt-console
|
||||||
|
filename=$(curl -L $mirror/$dir/latest-$prefix.txt | grep '.qcow2' | awk '{print $1}' | grep .)
|
||||||
|
file=$mirror/$dir/$filename
|
||||||
|
test_url "$file" 'qemu'
|
||||||
|
eval ${step}_img=$file
|
||||||
else
|
else
|
||||||
prefix=stage3-$basearch_alt-systemd
|
prefix=stage3-$basearch_alt-systemd
|
||||||
dir=releases/$basearch_alt/autobuilds
|
filename=$(curl -L $mirror/$dir/latest-$prefix.txt | grep '.tar.xz' | awk '{print $1}' | grep .)
|
||||||
file=$(curl -L $mirror/$dir/latest-$prefix.txt | grep '.tar.xz' | awk '{print $1}')
|
file=$mirror/$dir/$filename
|
||||||
stage3=$mirror/$dir/$file
|
test_url "$file" 'tar.xz'
|
||||||
test_url $stage3 'tar.xz'
|
eval ${step}_img=$file
|
||||||
eval ${step}_img=$stage3
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user