Jump to content

[Armbian build PR] - Change custom Ubuntu mirror logic


RSS Bot

Recommended Posts

Description

After today's complete stall of primary Ubuntu infrastructure I switched to mirrors in order to rebuild caches. First problem is that often mirrors for amd64 and others are placed on different locations. This part is covered but it fails for riscv64 architecture. In order to cover that too, its better to have more generic variable CUSTOM_UBUNTU_MIRROR_PORTS and have everything that is not amd64 there. By quick research - if mirror hosts arm64 it also hosts risv64 and vice versa.

Second problem - if caches are re-generated with 3rd party mirrors, release lists remain with those values. How to approach to that problem? We want that - at least our builds - are always shipped with generic entries.

How Has This Been Tested?

  • [ ] Generated rootfs with two mirrors that are fast in EU:
  1. CUSTOM_UBUNTU_MIRROR_PORTS="ftp.tu-chemnitz.de/pub/linux/ubuntu-ports/"
  2. CUSTOM_UBUNTU_MIRROR="mirrors.dotsrc.org/ubuntu/"

Checklist:

  • [x] My code follows the style guidelines of this project
  • [x] I have performed a self-review of my own code
  • [x] I have commented my code, particularly in hard-to-understand areas
  • [ ] I have made corresponding changes to the documentation
  • [ ] My changes generate no new warnings
  • [ ] Any dependent changes have been merged and published in downstream modules

View the full article

Link to comment
Share on other sites

Armbian & Khadas are rewarding contributors

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines