commit | 5a90d306602a5ccb7022fa8c80b7b1e4fb6c85d4 | [log] [tgz] |
---|---|---|
author | Lorenz Brun <lorenz@monogon.tech> | Mon Oct 09 17:38:13 2023 +0200 |
committer | Lorenz Brun <lorenz@monogon.tech> | Mon Oct 09 15:47:05 2023 +0000 |
tree | b6e2bfe17aa8ccb532aeca405e17fc2eda99dc5f | |
parent | d141d182614f915ae44250b84c6be10276ca4840 [diff] |
metropolis: fix handling GPT holes GPT tables can have "holes" i.e. unused partition slots. These are represented as nil values. Code walking these tables did not consider that partition entries might be nil. Fix the call sites and improve the gpt package documentation to explicitly mention the need to check IsUnused. Change-Id: I27f5db31e14a4907a84d6069ddcc267b25871f72 Reviewed-on: https://review.monogon.dev/c/monogon/+/2208 Reviewed-by: Tim Windelschmidt <tim@monogon.tech> Tested-by: Jenkins CI
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 --config dbg
Launch an ephemeral test node:
bazel test //:launch --config 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 --config dbg //...