Example Distro to Order Image Configuration Files

For additional information on using these example files, see Distro-to-Order Component Overview.

variants/elxr-core.yml

name: elxr
description: "An example d2o configuration file"
version: "26.04.02-core"
image:
  distro: elxr
  release: bianca
modules:
  # Core profile that contains common configuration and packages
  - name: core
    type: profile
    options:
      include:
        - shared/profile/core
  # Base package list that is common across different artifacts
  - name: base
    id: image
    options:
      include:
        - shared/image/base
  # Default initrd
  - name: initrd
    id: image
    options:
      include:
        - shared/image/initrd

variants/shared/profile/core/mkosi.conf

[Config]
Dependencies=base, initrd

[Content]
RootPassword=elxr
Packages=
    apt
    ca-certificates
    elxr-archive-keyring
    openssh-server
    openssh-client

KernelCommandLine=
    audit=0
    rw

[Include]
Include=mkosi-vm

variants/shared/image/base/mkosi.conf

[Output]
Format=directory

[Content]
Packages=
    adduser
    apt
    apt-utils
    console-setup
    debconf
    dhcpcd-base
    e2fsprogs
    eject
    init
    iproute2
    iputils-ping
    kbd
    kmod
    less
    locales
    login
    lsb-release
    mawk
    mount
    netbase
    netcat-openbsd
    netplan.io
    passwd
    procps
    python3
    sensible-utils
    sudo
    tzdata
    udev
    vim-tiny
    whiptail

variants/shared/image/initrd/mkosi.conf

[Include]
Include=mkosi-initrd

[Output]
CompressOutput=gzip
ManifestFormat=json