Skip to content

Commit 189ed2b

Browse files
committed
fix(debos/rootfs): Add missing trixie suites
Add missing trixie-updates and trixie-security suites as these aren't created by debootstrap by default. Run an APT update and full-upgrade to pickup changes from these suites. Signed-off-by: Loïc Minier <[email protected]>
1 parent 4073c53 commit 189ed2b

File tree

2 files changed

+37
-7
lines changed

2 files changed

+37
-7
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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

debos-recipes/qualcomm-linux-debian-rootfs.yaml

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)