File tree Expand file tree Collapse file tree 2 files changed +37
-7
lines changed
overlays/apt-sources/etc/apt/sources.list.d Expand file tree Collapse file tree 2 files changed +37
-7
lines changed Original file line number Diff line number Diff line change 1+ # Debian archive
2+ Types: deb
3+ URIs: http://deb.debian.org/debian/
4+ Suites: trixie
5+ Components: main contrib non-free non-free-firmware
6+ Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
7+
8+ # Debian stable updates
9+ Types: deb
10+ URIs: http://deb.debian.org/debian/
11+ Suites: trixie-updates
12+ Components: main contrib non-free non-free-firmware
13+ Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
14+
15+ # Debian security updates
16+ Types: deb
17+ URIs: http://deb.debian.org/debian-security/
18+ Suites: trixie-security
19+ Components: main contrib non-free non-free-firmware
20+ Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
Original file line number Diff line number Diff line change @@ -43,13 +43,12 @@ actions:
4343 apt -y upgrade
4444{{- end }}
4545
46- - action : run
47- description : Modernize APT sources
48- chroot : true
49- command : |
50- set -eux
51- apt -y modernize-sources
52- rm -v /etc/apt/sources.list.bak
46+ # after debootstrap, only a basic etc/apt/sources.list is created; add more
47+ # modern etc/apt/sources.list.d/debian.sources; sources.list is removed after
48+ # applying all overlays, and followed by an APT update and full-upgrade
49+ - action : overlay
50+ description : Create Debian APT sources
51+ source : overlays/apt-sources
5352
5453{{- if .overlays }}
5554{{- range $overlay := split "," .overlays }}
@@ -59,6 +58,17 @@ actions:
5958{{- end }}
6059{{- end }}
6160
61+ - action : run
62+ description : Remove old APT sources and upgrade packages
63+ chroot : true
64+ command : |
65+ set -eux
66+ # remove old style, incomplete sources, superseded in apt-sources overlay
67+ rm -vf /etc/apt/sources.list
68+ # APT update and upgrade to pickup changes from overlays
69+ apt -y update
70+ apt -y full-upgrade
71+
6272 - action : apt
6373 description : Install foundational packages
6474 recommends : true
You can’t perform that action at this time.
0 commit comments