Skip to content

[Request]: add "get" to "system kernel" subcommand #599

@banksean

Description

@banksean

Feature or enhancement request details

There doesn't appear to be a way to check what the default kernel binary is currently set to, even though there is a way to set it with container system kernel set. I would like container to have a corresponding container system kernel get subcommand.

I've already implemented this feature (including tests) in my fork of apple/container here: https://github.com/banksean/container/tree/kernelget

If this feature request is acceptable, I can submit that as a PR.

My use case:

  • my app uses a custom kernel binary with apple/container
  • on its first run, the app will download the custom kernel binary and call container system kernel set ... so that container will use it
  • on subsequent runs, the app has no way to check if the default kernel binary is already set to that custom binary, so the app blindly sets the default kernel again every time it runs (including a potentially lengthy download step)

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions