-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmkosi.conf.j2
65 lines (55 loc) · 1.4 KB
/
mkosi.conf.j2
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
[Distribution]
Distribution=debian
Release=bookworm
Architecture=x86-64
# We need to add additionnal repositories for nvidia and cuda drivers
Repositories=contrib,non-free,non-free-firmware
[Content]
Bootable=yes
Bootloader=uki
{% if debug %}
RootPassword=root
{% endif %}
Packages=linux-image-cloud-amd64
systemd
systemd-boot
systemd-sysv
systemd-resolved
udev
dbus
tzdata
tpm2-tools
firmware-misc-nonfree
firmware-linux
linux-headers-cloud-amd64
#Added for hardening
apparmor
apparmor-utils
iptables-persistent
# Note: when testing you might want to disable nvidia driver to speed up the build
{% if nvidiaDriver %}
nvidia-driver
nvidia-smi
nvidia-container-toolkit
cuda-drivers
{% endif %}
{% if debug %}
ca-certificates
vim
nano
{% endif %}
# docker
docker-ce
docker-ce-cli
containerd.io
docker-compose-plugin
Initrds=../initrd/image
KernelCommandLine= {% if debug %} console=ttyS0 {% endif %} systemd.volatile=overlay
# rd.systemd.unit=emergency.target
[Validation]
# Generate a SHA256SUMS file of all generated artifacts after the build is complete.
# Unused for now
Checksum=yes
[Output]
Format = disk
ManifestFormat = json