Skip to content

Allow post-install kargs.d updates #1714

Closed

Description

@RoyalOughtness

If /usr/lib/bootc/kargs.d is updated in the image, kargs should also be modified by bootc. Currently this only happens at install time.

This would require some kind of mechanism to keep track of which kargs are set at runtime by the user (rpm-ostree kargs) and which are set by kargs.d (so that they can be adjusted when kargs.d files change).

Activity

  1. LukeShortCloud commented on Nov 8, 2025

    @LukeShortCloud
    Contributor

    I was surprised to hear this. I assumed those would be applied after any bootc upgrade or bootc switch.

    This would be a very useful feature to automatically roll out kargs changes (remove no longer needed kargs thanks to kernel updates, add new kargs for workarounds, add new kargs for performance tweaks, etc.).

  2. andrewdunndev commented on Mar 15, 2026

    @andrewdunndev
    Contributor

    We use kargs.d on CentOS Stream 10 bootc images for console configuration (console=tty0 console=ttyS0,115200n8, order matters when NVIDIA takes the framebuffer) and kernel module parameters. For context, we build NVIDIA drivers from source into our bootc images:
    https://gitlab.com/dunn.dev/immutable/basec/-/blob/main/images/zfs-nvidia/Containerfile

    It looks like the core ask here, applying kargs.d during upgrades, was implemented in #1783. We've been testing with that behavior and it works as expected for our use case.

    Is this issue resolved by #1783, or is there remaining scope around /etc/bootc/kargs.d or other aspects that still need work?

  3. cgwalters commented on Mar 15, 2026

    @cgwalters
    Collaborator

    Hi @andrewdunndev cool to hear it's working for you! The PR you linked was for the composefs backend, the core /usr/lib/bootc/kargs.d was implemented before that for the ostree backend.

    I am closing this as we have tests that cover this too, but anyone should feel free to comment or reopen if they see other issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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