-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathdebian-rk3576-img.yaml
More file actions
45 lines (39 loc) · 1.23 KB
/
debian-rk3576-img.yaml
File metadata and controls
45 lines (39 loc) · 1.23 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
{{ $sectorsize := or .sectorsize 512 }}
{{ $imagesize := or .imagesize "4GiB" }}
{{ $kerneldir := or .kerneldir "prebuilt/linux" }}
{{ $cmdline := or .cmdline "audit=0 console=tty1 console=ttyS0,1500000n8" }}
architecture: arm64
sectorsize: {{ $sectorsize }}
actions:
- action: unpack
description: Load a tarball of the root filesystem
file: debian-ospack.tar.gz
- action: image-partition
imagename: debian-nobootloader.img
imagesize: {{ $imagesize }}
partitiontype: gpt
partitions:
- name: loader
fs: none
start: 32KiB
end: 16MiB
- name: root
fs: ext4
start: 16MiB
end: -1MiB
flags: [ boot ]
mountpoints:
- mountpoint: /
partition: root
options: [ x-systemd.growfs ]
- action: filesystem-deploy
append-kernel-cmdline: {{ $cmdline }}
- action: overlay
description: Copy Linux kernel packages into the target
source: {{ $kerneldir }}
origin: artifacts
destination: /var/cache/linux-kernel
- action: run
description: Install Linux kernel packages inside the target
chroot: true
command: find /var/cache/linux-kernel -name linux-image-\*.deb -a ! -name \*-dbg_\* -print0 | xargs -0 apt install -y