-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathrootfs-device.yaml
49 lines (40 loc) · 1.2 KB
/
rootfs-device.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{{- $architecture := or .architecture "arm64" -}}
{{- $family := or .family "sunxi" }}
{{- $nonfree := or .nonfree "false" -}}
{{- $device := or .device "pinephone" }}
{{- $environment := or .environment "phosh" -}}
{{- $rootfs := or .rootfs "rootfs.tar.gz" }}
{{- $miniramfs := or .miniramfs "false" }}
architecture: {{ $architecture }}
actions:
- action: unpack
file: {{ $rootfs }}
{{ if eq $nonfree "true" }}
- action: run
description: Enable non-free-firmware Debian repo
chroot: true
command: sed -i 's/main$/main non-free-firmware/g' /etc/apt/sources.list
{{ end }}
- action: recipe
recipe: include/packages-fde.yaml
- action: recipe
recipe: devices/{{ $family }}/packages-base.yaml
variables:
device: {{ $device }}
- action: recipe
recipe: devices/{{ $family }}/packages-{{ $environment }}.yaml
variables:
device: {{ $device }}
{{ if eq $miniramfs "true" }}
- action: apt
recommends: true
description: install miniramfs
packages:
- miniramfs
{{ end }}
- action: run
description: Cleanup filesystem
chroot: true
script: scripts/rootfs-cleanup.sh
- action: pack
file: rootfs-{{ $device }}-{{ $environment }}.tar.gz