Skip to content

Commit 190edb9

Browse files
committed
rootfs: Add option to install local debs
Update README to document the option. Signed-off-by: Loïc Minier <[email protected]>
1 parent 07bf2d2 commit 190edb9

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,9 @@ debos --fakemachine-backend qemu --memory 1GiB --scratchsize 4GiB debos-recipes/
4545
### Build options
4646

4747
A few options are provided in the debos recipes; for the root filesystem recipe:
48-
- experimentalkernel: update the linux kernel to the version from experimental; default: don't update the kernel
49-
- xfcedesktop: install a Xfce desktop environment; default: console only environment
48+
- `experimentalkernel`: update the linux kernel to the version from experimental; default: don't update the kernel
49+
- `localdebs`: path to a directory with local deb packages to install (NB: debos expects relative pathnames)
50+
- `xfcedesktop`: install a Xfce desktop environment; default: console only environment
5051

5152
For the image recipe:
5253
- dtb: override the firmware provided device tree with one from the linux kernel, e.g. `qcom/qcs6490-rb3gen2.dtb`; default: don't override

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{{- $xfcedesktop := or .xfcedesktop "false" }}
22
{{- $experimentalkernel := or .experimentalkernel "false" }}
3+
{{- $localdebs := or .localdebs "none" }}
34

45
architecture: arm64
56

@@ -190,6 +191,20 @@ actions:
190191
/etc/apt/sources.list.d/debian-experimental.sources
191192
{{- end }}
192193

194+
{{- if ne $localdebs "none" }}
195+
- action: overlay
196+
description: Overlay local debs directory {{ $localdebs }} to /root/
197+
source: {{ $localdebs }}
198+
destination: /root/
199+
200+
- action: run
201+
description: Install local debs from /root/
202+
chroot: yes
203+
command: |
204+
set -eux
205+
apt -i install /root/*.deb
206+
{{- end }}
207+
193208
- action: run
194209
description: Create DTBs tarball
195210
chroot: false

0 commit comments

Comments
 (0)