feat: allow users to use custom main Arch repo
This commit is contained in:
parent
97224821ef
commit
0fa9484c8f
1 changed files with 4 additions and 1 deletions
5
akshara
5
akshara
|
@ -230,7 +230,10 @@ def update_system():
|
||||||
pacman_mirrorlist_conf.write('nameserver 1.1.1.1\n')
|
pacman_mirrorlist_conf.write('nameserver 1.1.1.1\n')
|
||||||
|
|
||||||
with open('/.new_rootfs/etc/pacman.d/mirrorlist', 'w') as pacman_mirrorlist_conf:
|
with open('/.new_rootfs/etc/pacman.d/mirrorlist', 'w') as pacman_mirrorlist_conf:
|
||||||
pacman_mirrorlist_conf.write('Server = https://cloudflaremirrors.com/archlinux/$repo/os/$arch\n')
|
if type(blend_release.get('arch-repo')) == str:
|
||||||
|
pacman_mirrorlist_conf.write(f'Server = {blend_release.get("arch-repo")}/$repo/os/$arch\n')
|
||||||
|
else:
|
||||||
|
pacman_mirrorlist_conf.write('Server = https://cloudflaremirrors.com/archlinux/$repo/os/$arch\n')
|
||||||
|
|
||||||
exec_chroot('mkdir', '-p', '/var/cache/pacman/pkg')
|
exec_chroot('mkdir', '-p', '/var/cache/pacman/pkg')
|
||||||
exec_chroot('rm', '-rf', '/var/cache/pacman/pkg')
|
exec_chroot('rm', '-rf', '/var/cache/pacman/pkg')
|
||||||
|
|
Loading…
Reference in a new issue