Skip to content

Commit 3efac67

Browse files
authored
Merge pull request #185 from lool/apt-fixes
APT fixes
2 parents 4073c53 + ab42026 commit 3efac67

File tree

7 files changed

+68
-14
lines changed

7 files changed

+68
-14
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ A few options are provided in the debos recipes; for the root filesystem recipe:
129129
For the image recipe:
130130
- `dtb`: override the firmware provided device tree with one from the linux kernel, e.g. `qcom/qcs6490-rb3gen2.dtb`; default: don't override
131131
- `imagetype`: either `ufs` (the default) or (`sdcard`); UFS images are named disk-ufs.img and use 4096 bytes sectors and SD card images are named disk-sdcard.img and use 512 bytes sectors
132-
- `imagesize`: set the output disk image size; default: `4GiB`
132+
- `imagesize`: set the output disk image size; default: `4.5GiB`
133133
134134
For the flash recipe:
135135
- `u_boot_rb1`: prebuilt U-Boot binary for RB1 in Android boot image format -- see below (NB: debos expects relative pathnames)
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
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# for binary packages built from these source packages, score the version from
2+
# Debian backports higher as to get hardware enabled or better hardware support
3+
4+
Package: src:alsa-ucm-conf:any src:firmware-free:any src:firmware-nonfree:any src:linux:any src:linux-signed-arm64:any src:mesa:any
5+
Pin: release n=trixie-backports
6+
Pin-Priority: 900
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Debian backports
2+
Types: deb
3+
URIs: http://deb.debian.org/debian
4+
Suites: trixie-backports
5+
Components: main contrib non-free non-free-firmware
6+
Enabled: yes
7+
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# for binary packages built from these source packages, score the version from
2+
# trixie-overlay higher than versions from Debian for compliance
3+
Package: src:pipewire:any
4+
Pin: release n=trixie-overlay
5+
Pin-Priority: 950
6+

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{- $dtb := or .dtb "firmware" }}
2-
{{- $imagesize := or .imagesize "4GiB" }}
2+
{{- $imagesize := or .imagesize "4.5GiB" }}
33
{{- $imagetype := or .imagetype "ufs" }}
44
{{- $image := printf "disk-%s.img" $imagetype }}
55

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

Lines changed: 27 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ actions:
1313
suite: trixie
1414
components:
1515
- main
16-
# for packages of linux-firmware
16+
- contrib
17+
- non-free
1718
- non-free-firmware
1819
mirror: http://deb.debian.org/debian
1920
variant: minbase
@@ -28,7 +29,7 @@ actions:
2829
mount --bind {{$aptlocalrepo}} "${ROOTDIR}/media/apt-local-repo"
2930
3031
- action: run
31-
description: APT update and upgrade with local APT repository
32+
description: Setup APT sources for local APT repository
3233
chroot: true
3334
command: |
3435
set -eux
@@ -38,18 +39,18 @@ actions:
3839
Suites: /
3940
Trusted: true
4041
EOF
41-
42-
apt update
43-
apt -y upgrade
4442
{{- end }}
4543

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
44+
# after debootstrap, only a basic etc/apt/sources.list is created; add more
45+
# modern etc/apt/sources.list.d/debian.sources; sources.list is removed after
46+
# applying all overlays, and followed by an APT update and full-upgrade
47+
- action: overlay
48+
description: Create Debian APT sources
49+
source: overlays/apt-sources
50+
51+
- action: overlay
52+
description: Add Debian backports APT configuration
53+
source: overlays/backports
5354

5455
{{- if .overlays }}
5556
{{- range $overlay := split "," .overlays }}
@@ -59,6 +60,20 @@ actions:
5960
{{- end }}
6061
{{- end }}
6162

63+
- action: run
64+
description: Remove old APT sources and upgrade packages
65+
chroot: true
66+
command: |
67+
set -eux
68+
# remove old style, incomplete sources, superseded in apt-sources overlay
69+
rm -vf /etc/apt/sources.list
70+
# install ca-certificates early to make sure https APT sources are
71+
# properly picked up
72+
apt -y install ca-certificates
73+
# APT update and upgrade to pickup changes from overlays
74+
apt -y update
75+
apt -y full-upgrade
76+
6277
- action: apt
6378
description: Install foundational packages
6479
recommends: true

0 commit comments

Comments
 (0)