commit | 1cf17953163089f6b90d0922bff0994e06c95e29 | [log] [tgz] |
---|---|---|
author | Lorenz Brun <lorenz@monogon.tech> | Mon Feb 13 17:41:59 2023 +0100 |
committer | Lorenz Brun <lorenz@monogon.tech> | Tue Feb 14 10:03:25 2023 +0000 |
tree | cfcef14d8530761d9b0a18adf266262898ede7c6 | |
parent | d026b37c2a27d414821f860ccd0effb522be1ce4 [diff] |
pkg/bootparam: add bootparam pkg This adds the bootparam package which can marshal and unmarshal the Linux kernel command line into boot parameters and a rest section passed to init. This is a very quirky format, thus there is a fuzz testing harness against the reference implementation from the kernel included to verify correctness. A set of weird edge cases is rejected by Unmarshal instead of parsing to nonsensical data as the reference implementation does to save on complexity in the parser. Change-Id: I6debfa67e69ae8db4e0356f34ecb127ea27d18de Reviewed-on: https://review.monogon.dev/c/monogon/+/1125 Tested-by: Jenkins CI Reviewed-by: Serge Bazanski <serge@monogon.tech>
This is the main repository containing the source code for the Monogon Platform.
This is pre-release software - take a look, and check back later!
Our build environment is self-contained and requires only minimal host dependencies:
/dev/kvm
(if you want to run tests).Our docs assume that Bazelisk is available as bazel
on your PATH.
Refer to SETUP.md for detailed instructions.
Build CLI and node image:
bazel build //metropolis/cli/dbg //:launch -c dbg
Launch an ephemeral test node:
bazel test //:launch -c dbg --test_output=streamed
Run a kubectl command while the test is running:
bazel-bin/metropolis/cli/dbg/dbg_/dbg kubectl describe node
Run full test suite:
bazel test -c dbg //...