Skip to content

Support modify kernel-parameters for different arch in build image. #587

Description

@pengubco

I have a use case where I need different kernel parameters for the same variant across different architectures. For example, for the aws-dev variant, if the architecture is aarch64, I want to add "pci=realloc" and remove "quiet".

Before:

[package.metadata.build-variant]
kernel-parameters = [
    # Other parameters omitted for clarity
    "quiet",
]

After:

[package.metadata.build-variant]
kernel-parameters = [
    "pci=realloc",
]

Could Twoliter add a feature to support this? Something like:

twoliter modify-kernel-parameters --variant "aws-dev" --add "pci=realloc" --remove "quiet"

It could be even better if the modification is integrated into the "cargo make build" command. Such that there is no -dirty tag of images built.

Activity

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

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions