-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathmainline-generic.yaml
65 lines (55 loc) · 1.85 KB
/
mainline-generic.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
{{- $architecture := or .architecture "amd64" -}}
{{- $image := or .image "ubuntu-touch-mainline-generic-amd64.img" -}}
{{- $debug := or .debug "on" -}}
architecture: {{ $architecture }}
actions:
- action: recipe
description: Setup core rootfs
recipe: mainline-rootfs-core.yaml
- action: recipe
description: Add linux-firmware package
recipe: mainline-rootfs-firmware.yaml
variables:
architecture: {{ $architecture }}
- action: image-partition
description: Creating image
imagename: {{ $image }}
imagesize: 4GB
partitiontype: msdos
mountpoints:
- mountpoint: /
partition: ROOTFS
partitions:
- name: ROOTFS
fs: ext4
start: 1M
end: 100%
flags: [ boot ]
- action: run
description: Install deps
chroot: true
script: ./scripts/apt-install.sh grub-pc linux-generic
- action: run
description: Install kernel modules
chroot: true
script: ./scripts/wget-dpkg.sh https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.4/linux-modules-5.4.0-050400-generic_5.4.0-050400.201911242031_amd64.deb
- action: run
description: Install kernel
chroot: true
script: ./scripts/wget-dpkg.sh https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.4/linux-image-unsigned-5.4.0-050400-generic_5.4.0-050400.201911242031_amd64.deb
- action: filesystem-deploy
description: Deploying filesystem into image
- action: run
description: Install bootloader (grub)
chroot: true
command: sed -i "s/quiet splash/rw/g" /etc/default/grub && grub-install /dev/vda && update-grub
- action: run
chroot: true
description: Setting egl libs to use mesa (for common rootfs)
script: scripts/enable-mesa.sh
- action: recipe
description: Polish the image
recipe: polish.yaml
variables:
architecture: {{ $architecture }}
image: {{ $image }}