curtin-dev team mailing list archive
-
curtin-dev team
-
Mailing list archive
-
Message #03621
[Merge] ~ogayot/curtin:apt-transport-mirror into curtin:master
The proposal to merge ~ogayot/curtin:apt-transport-mirror into curtin:master has been updated.
Description changed to:
Add support for mirrorlist-s in curtin.
A mirrorlist allows one to specify multiple mirrors, with different selection criteria, for a single APT source.
During installation, we want to make Subiquity lean on this new feature of curtin to specify http://archive.ubuntu.com/ubuntu (or http://ports.ubuntu.com/ubuntu-ports) as a low priority mirror so that APT can automatically use it as the fallback if the requested mirror (country mirror most likely) does not work.
The mirrorlist is expected to look like this:
```
http://fr.archive.ubuntu.com/ubuntu priority=1
http://archive.ubuntu.com/ubuntu
```
And the associated apt-config, should look like this:
```
apt:
mirrorlists:
- path: /etc/apt/mirrorlists/subiquity.txt
mirrors:
- uri: http://fr.archive.ubuntu.com/ubuntu
meta-data: {priority:1}
- uri: http://archive.ubuntu.com/ubuntu
primary:
- arches:
- default
uri: mirror+file:/etc/apt/mirrorlists/subiquity.txt
security:
...
```
For more details, see:
https://code.launchpad.net/~ogayot/curtin/+git/curtin/+merge/472307
--
Your team curtin developers is requested to review the proposed merge of ~ogayot/curtin:apt-transport-mirror into curtin:master.