-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathinstaller.yaml
51 lines (43 loc) · 1.46 KB
/
installer.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
50
51
{{- $architecture := or .architecture "arm64" -}}
{{- $family := or .family "sunxi" }}
{{- $nonfree := or .nonfree "false" -}}
{{- $device := or .device "pinephone" }}
{{- $partitiontable := or .partitiontable "gpt" }}
{{- $filesystem := or .filesystem "ext4" }}
{{- $environment := or .environment "phosh" -}}
{{- $image := or .image "mobian-installer.img" -}}
{{- $installersize := or .installersize "8GB" }}
{{- $installfs := or .installfs "installfs.tar.gz" }}
{{- $bootstart := or .bootstart "1MiB" }}
architecture: {{ $architecture }}
actions:
- action: unpack
file: {{ $installfs }}
- action: overlay
source: rootfs-{{ $device }}-{{ $environment }}.sqfs
destination: /var/lib/rootfs.sqfs
- action: recipe
recipe: include/partition-{{ $partitiontable }}.yaml
variables:
bootstart: {{ $bootstart }}
filesystem: {{ $filesystem }}
image: {{ $image }}
imagesize: {{ $installersize }}
installer: "true"
- action: filesystem-deploy
description: Deploy filesystem onto image
{{ 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: devices/{{ $family }}/packages-base.yaml
variables:
device: {{ $device }}
- action: recipe
recipe: devices/{{ $family }}/bootloader.yaml
variables:
device: {{ $device }}
image: {{ $image }}