-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathastroslide.yaml
101 lines (83 loc) · 2.45 KB
/
astroslide.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
{{- $image := or .image "gemian-astroslide.tgz" -}}
{{- $output := or .output "tarball" -}}
{{- $variant := or .variant "mate" -}}
architecture: arm64
actions:
- action: recipe
description: Setup Gemian rootfs
recipe: gemian-common.yaml
- action: overlay
description: Adding Astro Slide overlay
source: overlay/astroslide
destination: /
- action: apt
description: Installing additional Debian packages
packages: [ curl, gnupg, openssh-server, sudo ]
- action: apt
description: Installing Astro Slide-specific packages
target-device: mt6873
packages:
- gemian-system
- lxc-android
- lxc
- debhelper
- lxcfs
- uidmap
- libglx-mesa0
- libgl1-mesa-dri
- astro-linux-kernel
- devscripts
- build-essential
- cmake
- network-manager
- kexec-tools
- pulseaudio-modules-droid-modern
- action: run
description: Generate /usr/share/kernel/astroslide-boot.img for Astro Slide
chroot: true
command: /usr/sbin/update-gemian-boot-image astroslide
- action: run
description: Generate /usr/share/kernel/astroslide-boot-lvm-gemian-bullseye.img for Astro Slide
chroot: true
command: /usr/sbin/update-gemian-boot-image astroslide gemian-bookworm
- action: run
chroot: true
command: echo astroslide > /etc/hostname
- action: run
chroot: true
command: echo "127.0.0.1 astroslide" >> /etc/hosts
- action: run
chroot: true
description: Add apt sandbox user to Android inet group
command: sed -i 's/_apt:x:100:65534/_apt:x:100:3003/g' /etc/passwd
- action: run
chroot: true
description: depmod kernel modules (needs /lib/modules/N.N.N)
command: depmod -a 4.14.186
{{ if eq $variant "kde-plasma" }}
- action: recipe
recipe: variants/kde-plasma.yaml
{{ end }}
- action: run
chroot: true
description: Removing /var/log/journal to avoid persisant journaling
command: rm -rf /var/log/journal/
{{ if eq $output "tarball" }}
- action: pack
file: {{ $image }}
compression: gz
{{ end }}
{{ if eq $output "image" }}
- action: image-file
imagename: {{ $image }}
imagesize: 6000000000
fs: ext4
fsname: "gemian"
- action: run
description: Allow jenkins user to access file
command: chown jenkins.jenkins {{ $image }}
- action: filesystem-deploy
setup-fstab: false
setup-kernel-cmdline: false
description: Deploying filesystem onto image
{{ end }}