-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathrootfs-device.yaml
More file actions
59 lines (49 loc) · 1.51 KB
/
Copy pathrootfs-device.yaml
File metadata and controls
59 lines (49 loc) · 1.51 KB
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
50
51
52
53
54
55
56
57
58
59
{{- $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" }}
{{- $kernel := or .kernel "default" }}
{{- $debian_suite := or .debian_suite "forky" -}}
architecture: {{ $architecture }}
## Copyright (C) 2026 tabletseeker <https://github.com/tabletseeker>
## See the LICENSE for file COPYING conditions.
actions:
- action: unpack
file: {{ $rootfs }}
{{ if eq $nonfree "true" }}
- action: run
description: Enable non-free-firmware repos
chroot: true
script: scripts/setup-apt-nonfree.sh true
{{ end }}
- action: recipe
recipe: include/packages-fde.yaml
variables:
debian_suite: {{ $debian_suite }}
- action: recipe
recipe: devices/{{ $family }}/packages-base.yaml
variables:
device: {{ $device }}
kernel: {{ $kernel }}
nonfree: {{ $nonfree }}
debian_suite: {{ $debian_suite }}
- 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