Skip to content

Commit 06935e0

Browse files
committed
rootfs: Add option to install local debs
Update README to document the option.
1 parent 25daed9 commit 06935e0

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ debos --fakemachine-backend qemu --memory 1GiB --scratchsize 4GiB debos-recipes/
4646

4747
A few options are provided in the debos recipes; for the root filesystem recipe:
4848
- experimentalkernel: update the linux kernel to the version from experimental; default: don't update the kernel
49+
- localdebs: install this space separte list of local deb packages (NB: debos expects relative pathnames)
4950
- xfcedesktop: install a Xfce desktop environment; default: console only environment
5051

5152
For the image recipe:

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
{{- $xfcedesktop := or .xfcedesktop "false" }}
22
{{- $experimentalkernel := or .experimentalkernel "false" }}
3+
{{- $localdebs := list -}}
4+
{{- if .localdebs -}}
5+
{{- $localdebs = split " " .localdebs }}
6+
{{- end -}}
37

48
architecture: arm64
59

@@ -190,6 +194,21 @@ actions:
190194
/etc/apt/sources.list.d/debian-experimental.sources
191195
{{- end }}
192196

197+
{{ range $deb := $localdebs }}
198+
- action: overlay
199+
description: Copy local deb "{{ $deb }}"
200+
source: {{ $deb }}
201+
destination: /local-debs/
202+
203+
- action: run
204+
description: Install local deb "{{ $deb }}"
205+
chroot: yes
206+
command: |
207+
set -eux
208+
apt -y install /local-debs/*.deb
209+
rm -rf /local-debs/
210+
{{ end }}
211+
193212
- action: run
194213
description: Create DTBs tarball
195214
chroot: false

0 commit comments

Comments
 (0)