Fix bootstraps downloading

New releases are packed in tar.zst.
This commit is contained in:
Kron4ek 2024-05-03 09:13:56 +03:00 committed by GitHub
parent ecc47946da
commit 1004a52816
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -246,7 +246,7 @@ bootstrap_urls=("mirror.f4st.host" \
echo "Downloading Arch Linux bootstrap" echo "Downloading Arch Linux bootstrap"
for link in "${bootstrap_urls[@]}"; do for link in "${bootstrap_urls[@]}"; do
curl -#LO "https://${link}/archlinux/iso/latest/archlinux-bootstrap-x86_64.tar.gz" curl -#LO "https://${link}/archlinux/iso/latest/archlinux-bootstrap-x86_64.tar.zst"
curl -#LO "https://${link}/archlinux/iso/latest/sha256sums.txt" curl -#LO "https://${link}/archlinux/iso/latest/sha256sums.txt"
if [ -s sha256sums.txt ]; then if [ -s sha256sums.txt ]; then
@ -268,8 +268,8 @@ if [ -z "${bootstrap_is_good}" ]; then
fi fi
rm -rf "${bootstrap}" rm -rf "${bootstrap}"
tar xf archlinux-bootstrap-x86_64.tar.gz tar xf archlinux-bootstrap-x86_64.tar.zst
rm archlinux-bootstrap-x86_64.tar.gz sha256sums.txt sha256.txt rm archlinux-bootstrap-x86_64.tar.zst sha256sums.txt sha256.txt
mount_chroot mount_chroot