Skip to content

Args passed via --firstboot-args are lost if also using --config-file #1689

@jlebon

Description

@jlebon

Normally, parameters specified in a config file (and passed to coreos-installer via --config-file) should combine. E.g. with a config file like:

append-karg: [foobar]

And doing coreos-installer install --config-file config.yaml --append-karg bazboo, you'd get both foobar and bazboo appended.

But --firstboot-args is special because it doesn't have any correspondence to a config file entry (and is in fact a hidden option) because it's only meant as an implementation detail of coreos-installer-service to help automatically forward certain network-related kargs.

The clobbering happens here:

let config = config.expand_config_files()?;
.

A real world scenario of this is basically customizing PXE artifacts once and then booting those customized PXE artifacts on multiple machines where you want different network kargs that you want to specify directly via the PXE config.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions