Skip to content

Stock ignition configuration#528

Draft
davidcassany wants to merge 8 commits into
SUSE:mainfrom
davidcassany:stock_ignition_configuration
Draft

Stock ignition configuration#528
davidcassany wants to merge 8 commits into
SUSE:mainfrom
davidcassany:stock_ignition_configuration

Conversation

@davidcassany

@davidcassany davidcassany commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

This PR adds the --base-config flag in elemental3 customize. If the flag is present Elemental will generate the Ignition configuration in an initrd CPIO file which can be used as an initrd extension. With this option the ignition configuration will be seen as base configuration from Ignition's PoV and allow to merge on top additional user configuration. Moreover, the configuration partition, if any at all, will be labeled with CATALYST instead of ignition if no <mnt>/ignition/config.ign file is present, which is the case if --base-config is in use.

This is handy in scenarios where the user configuration is provided by the platform instead of being embedded within the image itself. Consider cases such as deploying in cloud providers.

This commit is a small refactor of the bootloader interface to define
a InstallCtx struct to include the parameters required for the bootloader
installation. This is mostly to improve code readability and to make it
simpler to understand the purpose of each parameter.

Signed-off-by: David Cassany <dcassany@suse.com>
…ruct

Signed-off-by: David Cassany <dcassany@suse.com>
Signed-off-by: David Cassany <dcassany@suse.com>
Signed-off-by: David Cassany <dcassany@suse.com>
Signed-off-by: David Cassany <dcassany@suse.com>
@davidcassany
davidcassany requested a review from a team as a code owner July 13, 2026 10:18
@davidcassany
davidcassany marked this pull request as draft July 13, 2026 10:18
@davidcassany

Copy link
Copy Markdown
Contributor Author

This PR is based on top of #522 and #523, because of that it is marked as draft. The diff will be way easier to read and review once #522 and #523 are part of the main branch.

If the new flag is passed the ignition configuration
is added as base configuration as part of an initrd
extension.

This allows adding user configuration that gets merged at
runtime. Configuration which could be provided by the
platform (e.g. public cloud).

Signed-off-by: David Cassany <dcassany@suse.com>
Signed-off-by: David Cassany <dcassany@suse.com>
@davidcassany
davidcassany force-pushed the stock_ignition_configuration branch from c14ac1d to 246990a Compare July 13, 2026 15:59
Use 'ignition' label only if there is the user ignition configuration
included. Otherwise it uses the 'CATALYST' label. This allows to attacth
an additional 'ignition' device at boot time to provide user Ignition
configuration.

Signed-off-by: David Cassany <dcassany@suse.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant