gentoo: 修改云镜像地址

This commit is contained in:
bin456789 2025-02-06 18:47:21 +08:00
parent ad89a69f6a
commit 24b6e7f922
No known key found for this signature in database
GPG Key ID: EE301B386DE6C11B

View File

@ -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
} }