-
Notifications
You must be signed in to change notification settings - Fork 1
/
ospack.yaml
91 lines (79 loc) · 1.96 KB
/
ospack.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
{{ $architecture := or .architecture "arm64" }}
{{ $suite := or .suite "bullseye" }}
{{ $ospack := or .ospack (printf "ospack-%s-%s" $suite $architecture) }}
{{ $hostname := or .hostname "open" }}
architecture: {{ $architecture }}
actions:
- action: debootstrap
description: Bootstrap Debian {{ $suite }}
suite: {{ $suite }}
components:
- main
- contrib
- non-free
mirror: https://deb.debian.org/debian
hostname: {{ $hostname }}
- action: apt
description: Install systemd
packages:
- systemd
- systemd-sysv
- systemd-timesyncd
- udev
- action: apt
description: Install packages for scripts/setup-user.sh
packages:
- action: apt
description: Install misc packages
packages:
- sudo
- adduser
- network-manager
- net-tools
- iproute2
- iperf3
- i2c-tools
- usbutils
- pciutils
- can-utils
- evtest
- vim
- ppp
- picocom
- gdisk
- parted
- bluez
- curl
- python3
- python3-pip
- python-is-python3
- alsa-utils
- pulseaudio-module-bluetooth
- pulseaudio
- action: overlay
description: Copy /etc/hosts
source: overlay/etc/hosts
destination: /etc/hosts
- action: run
description: Setup user
chroot: true
script: scripts/setup-user.sh {{ $hostname }}
- action: overlay
description: Enable DHCP IP on Ethernet connections
source: overlay/etc/systemd/network/
destination: /etc/systemd/network/
- action: overlay
description: Add ppp scripts for 4G Quectel
source: overlay/etc/ppp/
destination: /etc/ppp/
- action: overlay
description: Copy firmware
source: overlay/lib/firmware
destination: /lib/firmware
- action: overlay
description: Copy modules
source: prebuilt/modules
destination: /lib/modules
- action: pack
description: Pack into tarball
file: {{ $ospack }}.tar.gz