Skip to content

Commit

Permalink
Minor bugfix for Artix
Browse files Browse the repository at this point in the history
  • Loading branch information
sebanc committed Aug 14, 2024
1 parent f11b0a6 commit 685c0fb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions linuxloops
Original file line number Diff line number Diff line change
Expand Up @@ -1600,6 +1600,7 @@ cat >"${bootstrapdir}"/linuxloops/prepare_chroot <<PREPARE_CHROOT
set -e
curl -L https://gitea.artixlinux.org/packages/pacman/raw/branch/master/pacman.conf -o /etc/pacman_artix.conf
sed -i 's@#ParallelDownloads@ParallelDownloads@g' /etc/pacman_artix.conf
mv /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist-arch
curl -L https://gitea.artixlinux.org/packages/artix-mirrorlist/raw/branch/master/mirrorlist -o /etc/pacman.d/mirrorlist
sed -i 's@^Server@#Server@g' /etc/pacman.d/mirrorlist
cur_speed=0; for i in https://ftp.sh.cvut.cz/artix-linux https://mirror1.artixlinux.org/repos https://us-mirror.artixlinux.org; do if ! avg_speed=\$(curl -fsS -m 5 -r 0-1048576 -w '%{speed_download}' -o /dev/null --url "\${i}/world/os/x86_64/world.db" 2> /dev/null); then avg_speed=0; fi; echo Download speed rating for mirror \${i} is \${avg_speed}; if [ \${avg_speed} -gt \${cur_speed} ]; then cur_speed=\${avg_speed}; default_mirror=\${i}; fi; done; echo Using mirror \${default_mirror}; sed -i "s@#Server = \${default_mirror}@Server = \${default_mirror}@g" /etc/pacman.d/mirrorlist
Expand All @@ -1608,6 +1609,7 @@ curl -L https://gitea.artixlinux.org/artix/artix-keyring/raw/branch/master/artix
curl -L https://gitea.artixlinux.org/artix/artix-keyring/raw/branch/master/artix-revoked -o /usr/share/pacman/keyrings/artix-revoked
pacman-key --populate artix
pacstrap -C /etc/pacman_artix.conf -G /mnt base base-devel runit-system runit elogind-runit mkinitcpio rsync nano lsb-release esysusers etmpfiles artix-branding-base artix-archlinux-support
cp /etc/pacman.d/mirrorlist-arch /mnt/etc/pacman.d/mirrorlist-arch
PREPARE_CHROOT
chmod 0755 "${bootstrapdir}"/linuxloops/prepare_chroot

Expand Down

0 comments on commit 685c0fb

Please sign in to comment.