File: targets.md

package info (click to toggle)
distrobuilder 3.2-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,468 kB
  • sloc: sh: 204; makefile: 75
file content (40 lines) | stat: -rw-r--r-- 1,187 bytes parent folder | download | duplicates (2)
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
# Targets

The target section is for target dependent files.

```yaml
targets:
    lxc:
        create_message: <string>
        config:
            - type: <string>
              before: <uint>
              after: <uint>
              content: <string>
            - ...
    incus:
        vm:
            size: <uint>
            filesystem: <string>
```

## LXC

The `create_message` field is a string which is displayed after new LXC container has been created.
This string is rendered using Pongo2 and can include various fields from the definition file, e.g. `{{ image.description }}`.

`config` is a list of container configuration options.
The `type` must be `all`, `system` or `user`.

The keys `before` and `after` are used for compatibility.
Currently, the maximum value for compatibility is 5.
If your desired compatibility level is 3 for example, you would use `before: 4` and `after: 2`.

`content` describes the configuration which is to be written to the configuration file.

## Incus

Valid keys are `size` and `filesystem`.
The former specifies the VM image size in bytes.
The latter specifies the root partition file system.
It currently supports `ext4` and `btrfs`.