Skip to content

Commit 27568b9

Browse files
fengjiongmaxtaoky
andauthored
postmarketOS: update mirror guide for postmarketOS (and alpine's pmos section) (#22)
* update mirror guide for pmos(and alpine's pmos section) * postmarketOS: update mirror url following syntax * Update postmarketOS/postmarketOS.zh.md --------- Co-authored-by: taoky <[email protected]>
1 parent f2b8d3d commit 27568b9

File tree

2 files changed

+12
-23
lines changed

2 files changed

+12
-23
lines changed

alpine/pmos.zh.md

+3-10
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,7 @@
33
本节供 [postmarketOS 帮助](../postmarketOS/)使用。
44

55
<tmpl z-lang="bash">
6-
pmbootstrap --mirror-pmOS=http://mirror/postmarketOS/ --mirror-alpine={{endpoint}}/ init
7-
pmbootstrap --mirror-pmOS=http://mirror/postmarketOS/ --mirror-alpine={{endpoint}}/ install
8-
</tmpl>
9-
10-
`/etc/apk/repositories` 替换为以下的内容
11-
12-
<tmpl z-path="/etc/apk/repositories">
13-
http://mirror/postmarketOS/master
14-
{{endpoint}}/edge/main
15-
{{endpoint}}/edge/community
6+
pmbootstrap config mirrors.alpine {{endpoint}}/alpine/
7+
pmbootstrap config mirrors.pmaports {{endpoint}}/postmarketOS/
8+
pmbootstrap config mirrors.systemd {{endpoint}}/postmarketOS/extra-repos/systemd/
169
</tmpl>

postmarketOS/postmarketOS.zh.md

+9-13
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,20 @@
11
### pmbootstrap
22

3-
需要在每个 `pmbootstrap` 命令中都指定镜像
3+
通过 `pmbootstrap config` 更新镜像配置。
44

55
<tmpl z-lang="bash">
6-
pmbootstrap --mirror-pmOS={{endpoint}}/ --mirror-alpine=http://mirror/alpine/ init
7-
pmbootstrap --mirror-pmOS={{endpoint}}/ --mirror-alpine=http://mirror/alpine/ install
6+
pmbootstrap config mirrors.alpine {{endpoint}}/alpine/
7+
pmbootstrap config mirrors.pmaports {{endpoint}}/postmarketOS/
8+
pmbootstrap config mirrors.systemd {{endpoint}}/postmarketOS/extra-repos/systemd/
89
</tmpl>
910

1011
其中 `mirror-alpine` 部分需要前往 [Alpine 帮助](../alpine/)构造。
1112

12-
### 安装后的 postmarketOS
13+
### 移除镜像配置
1314

14-
`/etc/apk/repositories` 替换为以下的内容
15-
16-
<tmpl>
17-
{{endpoint}}/master
18-
http://mirror/alpine/edge/main
19-
http://mirror/alpine/edge/community
15+
<tmpl z-lang="bash">
16+
pmbootstrap config -r mirrors.alpine
17+
pmbootstrap config -r mirrors.pmaports
18+
pmbootstrap config -r mirrors.systemd
2019
</tmpl>
2120

22-
其中 alpine 部分需要前往 [Alpine 帮助](../alpine/)构造。
23-
24-
可以按照需要使用不同的 channel,例如 `postmarketOS/v21.12``alpine/v3.15/main`

0 commit comments

Comments
 (0)