-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathdebian-rk3576-ospack.yaml
More file actions
270 lines (240 loc) · 6.9 KB
/
debian-rk3576-ospack.yaml
File metadata and controls
270 lines (240 loc) · 6.9 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
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
{{ $suite := or .suite "trixie" }}
{{ $variant := or .variant "minbase" }}
{{ $gitinfo := or .gitinfo "unknown" }}
{{ $testsdir := or .testsdir "prebuilt/tests" }}
architecture: arm64
actions:
- action: mmdebstrap
description: Bootstrap a base Debian {{ $suite }} system
suite: {{ $suite }}
variant: {{ $variant }}
keyring: /usr/share/keyrings/debian-archive-keyring.gpg
components:
- main
- contrib
- non-free
- non-free-firmware
include:
- acl
- adduser
- avahi-daemon
- alsa-ucm-conf
- alsa-utils
- apt-transport-https
- bash-completion
- bc
- bluedevil
- bluez
- bluez-alsa-utils
- bluez-firmware
- bluez-meshd
- bsdextrautils
- bsdmainutils
- build-essential
- ca-certificates
- cec-utils
- cog
- curl
- device-tree-compiler
- dmidecode
- dnsmasq-base
- drm-info
- e2fsprogs
- edid-decode
- evtest
- file
- fio
- firmware-misc-nonfree
- firmware-realtek
- gcc
- git
- glmark2-wayland
- gpiod
- i2c-tools
- inetutils-telnet
- initramfs-tools
- iperf3
- iproute2
- iptables
- iputils-ping
- iw
- iwd
- kde-config-screenlocker
- kde-spectacle
- kde-standard
- kmscube
- konsole
- kscreen
- less
- libcanberra-pulse
- libdrm-tests
- libtypec-utils
- libubootenv-tool
- libusb-1.0-0-dev
- links
- linux-cpupower
- linux-sysctl-defaults
- lm-sensors
- locales
- lshw
- lsof
- make
- mesa-utils
- modemmanager
- nano
- nftables
- nodejs
- openssh-server
- p7zip
- pciutils
- pipewire-alsa
- plasma-nm
- plasma-systemmonitor
- powercap-utils
- powerdevil
- python3-pandas
- python3-plotly
- rfkill
- rsync
- sddm
- sddm-theme-breeze
- sox
- strace
- stress-ng
- sudo
- sysstat
- systemd
- systemd-repart
- systemd-resolved
- systemd-sysv
- systemd-timesyncd
- systemsettings
- tcpdump
- traceroute
- u-boot-menu
- udev
- unzip
- usb-modeswitch
- usbutils
- util-linux-extra
- v4l-utils
- vim-tiny
- wget
- wireless-regdb
- wireplumber
- wpasupplicant
- zstd
- action: run
description: Generate en_US.UTF-8 locale
chroot: true
command: sed -i 's/^# en_US.UTF-8/en_US.UTF-8/' /etc/locale.gen && locale-gen
- action: run
description: Set default locale
chroot: true
command: echo "LANG=en_US.UTF-8" > /etc/default/locale
- action: run
description: Add default user "user" with password "user"
chroot: true
command: useradd -s /bin/bash -F -m user &&
echo "user:user" | chpasswd &&
gpasswd -a user sudo
- action: run
description: Add dedicated "flipctl" user
chroot: true
command: useradd -s /usr/sbin/nologin -d /var/lib/flipctl -G input,video,render -m -r flipctl
- action: run
description: Create user's .bash_aliases
chroot: true
command: |
echo "alias pastebin='curl --data-binary @- https://staging.getpost.workers.dev/'" >> /home/user/.bash_aliases
chown user:user /home/user/.bash_aliases
- action: run
description: Add sbin directories to user's PATH
chroot: true
command: printf '\nexport PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin\n' >> /home/user/.bashrc
- action: download
description: Download the most recent version of sbc-bench
url: https://raw.githubusercontent.com/ThomasKaiser/sbc-bench/master/sbc-bench.sh
name: sbc-bench
- action: overlay
description: Copy sbc-bench into root
origin: sbc-bench
destination: /usr/bin/sbc-bench.sh
- action: run
chroot: true
command: chmod +x /usr/bin/sbc-bench.sh
- action: overlay
description: Overlay our config defaults
source: overlays/configs
destination: /etc
- action: overlay
description: Overlay Broadcom WiFi/BT firmware files
source: overlays/firmware
destination: /usr/lib/firmware
- action: overlay
description: Overlay our usr/local scripts
source: overlays/usr/local
destination: /usr/local
- action: overlay
description: Overlay our usr/sbin files
source: overlays/usr/sbin
destination: /usr/sbin
- action: overlay
description: Overlay our usr/share files
source: overlays/usr/share
destination: /usr/share
# NetworkManager ignores connection profiles that are world-readable.
# Git can not track 600 permission, so we must set it here.
- action: run
description: Fix permissions on NetworkManager connection profiles
chroot: true
command: chmod 600 /etc/NetworkManager/system-connections/*.nmconnection
- action: run
description: Save GIT info
chroot: true
command: |
echo 'BUILD_GIT="{{ $gitinfo }}"' >> /etc/os-release
- action: run
description: Make u-boot-update script executable
chroot: true
command: chmod +x /usr/sbin/u-boot-update
- action: run
description: Remove /etc/machine-id and default /etc/motd
chroot: true
command: rm -f /etc/machine-id /etc/motd
- action: run
description: Switch to upstream signed regulatory.db
chroot: true
command: update-alternatives --set regulatory.db /lib/firmware/regulatory.db-upstream
- action: overlay
description: Copy test suite into the target
source: {{ $testsdir }}
destination: /flipperone-testing
- action: run
description: Make test suite writable for all users
chroot: true
command: chmod -R o+w /flipperone-testing
- action: download
description: Download our patched Cog browser with support for seat selection
url: https://dl-linux-images.flipp.dev/flipperone-deb/pool/main/c/cog/cog_0.19.1%2Bgit20260428.4fdf9dc-1_arm64.deb
name: cog-seat
- action: install-deb
description: Install the patched Cog package into the target
origin: cog-seat
- action: download
description: Download SDDM from Debian Sid rebuilt against Trixie libraries
url: https://dl-linux-images.flipp.dev/flipperone-deb/pool/main/s/sddm/sddm_0.21.0%2Bgit20251101.dfa5315-1_arm64.deb
name: sddm-sid
- action: install-deb
description: Install the updated SDDM package into the target
origin: sddm-sid
- action: download
description: Download updated Mediatek firmware (sid version)
url: https://dl-linux-images.flipp.dev/flipperone-deb/pool/main/f/firmware-nonfree/firmware-mediatek_20260309-1_all.deb
name: firmware-sid
- action: install-deb
description: Install the updated Mediatek firmware into the target
origin: firmware-sid
- action: pack
description: Save a tarball of the root filesystem
file: debian-ospack.tar.gz