-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathubuntu.yaml
More file actions
72 lines (59 loc) · 1.92 KB
/
ubuntu.yaml
File metadata and controls
72 lines (59 loc) · 1.92 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
{{- $image := or .image "ubuntu-lime.img" -}}
architecture: armhf
actions:
- action: debootstrap
suite: "noble"
components:
- main
- universe
mirror: http://ports.ubuntu.com/ubuntu-ports
variant: minbase
keyring-file: /usr/share/keyrings/ubuntu-archive-keyring.gpg
- action: run
description: Enable non-free-firmware Ubuntu repo
chroot: true
command: sed -i 's/main$/main non-free-firmware/g' /etc/apt/sources.list
- action: apt
packages: [ca-certificates, coreutils, sudo, openssh-server, adduser, systemd, systemd-sysv, systemd-resolved, nano, vim, qrtr-tools, libqmi-utils, rmtfs, udev, kmod, network-manager, modemmanager, wpasupplicant, ifupdown, isc-dhcp-client, isc-dhcp-server, systemd-timesyncd, bluetooth, kpartx, cloud-utils, fake-hwclock, wireless-regdb, usbutils, iputils-ping]
- action: run
description: Add citronics APT repository
chroot: true
command: echo "deb [trusted=yes] https://citronics.github.io/deb-packages/ stable main" | tee /etc/apt/sources.list.d/citronics.list
- action: apt
packages: [initramfs-tools, citronics-lime]
- action: run
chroot: true
script: scripts/setup-user.sh
- action: run
chroot: true
command: echo citronics > /etc/hostname
- action: overlay
source: overlays
destination: /
- action: run
chroot: true
script: scripts/setup-networking.sh
- action: run
chroot: true
command: update-initramfs -c -k all
- action: image-partition
imagename: {{ $image }}
imagesize: 750MB
partitiontype: msdos
mountpoints:
- mountpoint: /
partition: root
- mountpoint: /boot
partition: boot
partitions:
- name: boot
fs: ext2
start: 0%
end: 50MB
flags: [ boot ]
- name: root
fs: ext4
start: 50MB
end: 100%
- action: filesystem-deploy
description: Deploying filesystem onto image