particle-os-modules/modules/kargs/kargs.tsp
fiftydinar 734656f7cc
feat: kargs module (#388)
* feat: `kargs` module

* fix: ARCH conditions

* docs: Explain arch in module.yml

* docs: Refine kargs documentation

Co-authored-by: xyny <60004820+xynydev@users.noreply.github.com>

* chore: Add `kargs` to `modules.json`

* docs: Add info about discovering possible kargs

* docs: Use master branch link for kargs

* docs: Some grammar style fix

* docs: Add note about `bootc switch` for kargs to get applied

* chore: slight grammar change

* chore: small grammar change

---------

Co-authored-by: xyny <60004820+xynydev@users.noreply.github.com>
2025-04-27 08:45:30 +02:00

21 lines
573 B
Text

import "@typespec/json-schema";
using TypeSpec.JsonSchema;
@jsonSchema("/modules/kargs-latest.json")
model KargsModuleLatest {
...KargsModuleV1;
}
@jsonSchema("/modules/kargs-v1.json")
model KargsModuleV1 {
/** The kargs module injects kernel arguments into the image.
* https://blue-build.org/reference/modules/kargs/
*/
type: "kargs" | "kargs@v1" | "kargs@latest";
/** Defines on which OS architectures are kargs applied. Defaults to all architectures if omitted. */
`arch`?: string;
/** Kargs to inject in the image. */
`kargs`: Array<string>;
}