1
0
Fork 1
mirror of https://gitlab.postmarketos.org/postmarketOS/pmbootstrap.git synced 2025-07-12 19:09:56 +03:00

docs/mirrors: new document (MR 2361)

This commit is contained in:
Oliver Smith 2024-07-10 23:37:15 +02:00
parent 89a3136f08
commit 37244e1c0e
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
2 changed files with 46 additions and 0 deletions

View file

@ -19,6 +19,7 @@ For further information, please check out the `postmarketOS-wiki`_.
installation
usage
api/modules
mirrors

45
docs/mirrors.md Normal file
View file

@ -0,0 +1,45 @@
# Mirror Configuration
A typical postmarketOS installation has one Alpine Linux mirror configured as well as one
postmarketOS mirror. As Alpine's CDN mirror is used by default, it should be suitable for most
users. The postmarketOS mirror can be configured interactively with `pmbootstrap init`, under
"additional options".
Find the currently selected mirrors in the output of `pmbootstrap status`, as well as in
`/etc/apk/repositories` for initialized chroots and finished installations.
## Advanced
Some advanced use cases are supported by configuring the mirrors directly, either by editing
`pmbootstrap_v3.cfg` or running `pmbootstrap config`. Find the lists of mirrors at
[mirrors.alpinelinux.org](https://mirrors.alpinelinux.org) and
[mirrors.postmarketos.org](https://mirrors.postmarketos.org).
### Change the Alpine Linux mirror
```
$ pmbootstrap config mirrors.alpine http://uk.alpinelinux.org/alpine/
```
### Disable the postmarketOS mirror
This is useful to test bootstrapping from pure Alpine:
```
$ pmbootstrap config mirrors.pmaports none
$ pmbootstrap config mirrors.systemd none
```
### Use `_custom` mirrors
For all repositories, it is possible to add `_custom` entries, for example
`pmaports_custom` in addition to `pmaports`. If these are set, then pmbootstrap
creates addition entries infront of the real mirrors in
`/etc/apk/repositories`. This is used by [BPO](https://build.postmarketos.org)
to build packages with a WIP repository enabled in addition to the final
repository, but could also be used if you have another custom repository that
you want to use in addition to the postmarketOS binary package repository.
```
$ pmbootstrap config mirrors.pmaports_custom http://custom-repository-here
```