Skip to content

[Feature]: Add boot subcommands to manage arbitrary kernel cmdline args #105

Description

@synackd

Describe the feature

Add subcommands for bss and boot that allow the addition/modification/deletion of individual kernel cmdline arguments. Something like:

# Add two params, overwriting them if they already exist
ochami boot/bss cmdline set--mac <mac> param1 key2=val2

# Delete a param if it exists
ochami boot/bss cmdline unset --mac <mac> param1

# Return the value of a param, if any
ochami boot/bss cmdline get --mac <mac> key2

# Append params to the end of the cmdline string
ochami boot/bss cmdline append --mac <mac> param3 key4=val4

Essentially, create commands to match the API of https://pkg.go.dev/github.com/synackd/go-kargs.

This is different from ochami bss/boot params in that it is meant to edit individual params in the kernel cmdline string without having to write the whole thing out.

Why do you want this feature?

It is inconvenient to have to write out the whole kernel cmdline string when editing boot params. This feature allows fine-tuned cmdline string editing without having to copy and paste the entire string each time.

Alternatives you've considered

An alternative considered was incorporating this into the ochami bss params command, but that command is already complex with managing the kernel/initramfs URIs as well. It seems to make more organizational sense to have a command that focuses specifically on the cmdline args.

Additional context

No response

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