Skip to content

install: Add --karg-delete#2105

Open
hone wants to merge 1 commit intobootc-dev:mainfrom
hone:install-karg-delete
Open

install: Add --karg-delete#2105
hone wants to merge 1 commit intobootc-dev:mainfrom
hone:install-karg-delete

Conversation

@hone
Copy link
Copy Markdown

@hone hone commented Mar 29, 2026

Following up from the contribfest session. This adds --karg-delete to install.

In some relatively rare use cases, one might want to remove a kernel argument shipped in the container image.

Fixes: #1229

@github-actions github-actions bot added the area/install Issues related to `bootc install` label Mar 29, 2026
@bootc-bot bootc-bot bot requested a review from jmarrero March 29, 2026 05:06
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces the ability to remove kernel arguments during installation via a new --karg-delete CLI option and a corresponding karg-deletes field in the installation configuration. The implementation includes logic to process these deletions before applying new arguments, a helper function for precise or key-based removal, and comprehensive unit and integration tests to verify the functionality. I have no feedback to provide.

@hone
Copy link
Copy Markdown
Author

hone commented Mar 29, 2026

I wasn't sure about a few things when implementing this.

  1. What is the preferred order of precedence for how --karg and --karg-delete interface. kargs can come from root_setup, install_config, and the CLI. In order to let you delete kargs and allow you to replace it with a CLI flag, I deleted the kargs before applying the CLI flags.
  2. Do all install CLI flags also get applied to config? I modeled a configuration option based off of kargs.
  3. I wasn't sure which tests to add, so I added some unit tests, integration, and tmt tests.

@hone hone force-pushed the install-karg-delete branch from 8f99e8e to 22c5fa8 Compare March 29, 2026 05:16
This adds `--karg-delete` to install.

In some relatively rare use cases, one might want to remove a kernel argument shipped in the container image.

Fixes: bootc-dev#1229
Signed-off-by: Terence Lee <hone02@gmail.com>
@hone hone force-pushed the install-karg-delete branch from 22c5fa8 to 8cb46ce Compare March 29, 2026 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/install Issues related to `bootc install`

Projects

None yet

Development

Successfully merging this pull request may close these issues.

install: Add --karg-delete

1 participant