Skip to content

Add support for user.xyz options in distrobuilder #972

@stribika

Description

@stribika

Currently you can only pass options to distrobuilder which are defined in the reference.

It would be useful to support arbitrary options which can then be referenced in the template. For example, one could call

distrobuilder build-lxc $distro.yaml $distro --options user.output=$datadir

with a YAML file like this

targets:
  lxc:
    config:
    - type: all
      content: |-
        lxc.arch = {{ image.architecture_personality }}
        lxc.mount.entry = {{ user.output }} home/user/export none bind,create=dir

A related forum post can be found here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions