archinstall icon indicating copy to clipboard operation
archinstall copied to clipboard

Bundle an offline copy of mirrorlist

Open oldherl opened this issue 1 year ago • 5 comments

describe the request

Currently archinstall gets the mirrorlist from https://archlinux.org/mirrorlist/?protocol=https , but in some cases, the user might be blocked by archlinux.org due to attackers in the neighbourhood, and gets an HTTP 403 error for that request. image

Note that the user is not an attacker, but unfortunately blocked because of attackers in the same /24 or bigger subnet.

In that case, if archinstall could provide an offline copy of mirrorlist, the user could choose a mirror from that and continue the installation, as long as the chosen mirror doesn't block them.

oldherl avatar Jul 30 '24 06:07 oldherl

It would be a frozen mirror list that may or may not be accurate at the time of installation. But for sure, technically this would be an easy thing to implement.

In the meantime, we've adjusted some proxy configs and you should be able to access archlinux.org now :)

Torxed avatar Jul 30 '24 09:07 Torxed

Yes it would be a frozen list, but most mirrors in it should continue be usable within a month, which is the release cycle of archiso.

oldherl avatar Jul 30 '24 09:07 oldherl

Is pacman-mirrorlist not coming preinstalled with the ISO? 🤔

christian-heusel avatar Jul 30 '24 10:07 christian-heusel

True, that package might be there. We're using the archlinux.org call to check for network connectivity to some extent. And also while filtering/grabbing mirrors based on user selection.

Torxed avatar Jul 31 '24 11:07 Torxed

+1 this. I think archinstall should also offer an offline, local repository to install KDE plasma, gnome, xfce and other 3 popular WMs for this case, and when the user has an unstable internet or can't access the internet at all. then, the script and the local repo gets updated monthly. the only iso that does this but without any DE/WM is archboot, but it would be neat to add what I mentioned already, so for example, you can get a way to install KDE plasma with btrfs, luks, pipewire and grub completely offline from an official script.

hazelshantz avatar Aug 11 '24 00:08 hazelshantz