-
Notifications
You must be signed in to change notification settings - Fork 0
/
image-amd64.yaml
78 lines (65 loc) · 1.53 KB
/
image-amd64.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
architecture: amd64
actions:
- action: debootstrap
suite: "buster"
components:
- main
mirror: https://deb.debian.org/debian
variant: minbase
- action: apt
packages: [ sudo, openssh-server, adduser, systemd-sysv ]
- action: apt
recommends: false
packages:
- linux-image-amd64
- action: run
chroot: true
command: echo console=ttyS0,115200 > /etc/kernel/cmdline
- action: run
chroot: true
script: setup-user.sh
- action: run
chroot: true
command: echo buster > /etc/hostname
- action: overlay
source: networkd
- action: run
chroot: true
script: setup-networking.sh
- action: image-partition
imagename: "buster-amd64.img"
imagesize: 4G
partitiontype: gpt
mountpoints:
- mountpoint: /
partition: root
- mountpoint: /boot/efi
partition: EFI
options: [ x-systemd.automount ]
- mountpoint: /home
partition: home
partitions:
- name: EFI
fs: fat32
start: 6176s
end: 256M
flags: [ boot ]
- name: root
fs: ext4
start: 256M
end: 2G
- name: home
fs: ext4
start: 2G
end: 100%
- action: filesystem-deploy
description: Deploying filesystem onto image
- action: run
chroot: true
command: bootctl install
- action: run
chroot: true
command: kernel-install add 4.19.0-6-amd64 /boot/vmlinuz-4.19.0-6-amd64
- action: run
postprocess: true
command: gzip -f buster-amd64.img