| commit | c39b1dc86b0af53d0aee5ca0f1a32ab79408167d | [log] [tgz] |
|---|---|---|
| author | Jan Schär <jan@monogon.tech> | Mon Aug 26 17:21:14 2024 +0200 |
| committer | Jan Schär <jan@monogon.tech> | Tue Sep 10 14:50:21 2024 +0000 |
| tree | dfa95096d6c305f4a3f380ab32dffa5e62f56397 | |
| parent | 5c82e0dc025c8df3328af3cffd64b830b3bdb2b4 [diff] |
osbase/gpt: sync device after writing each GPT This makes it safer to update the GPT. Without the first sync call, it could for example happen that both GPTs are partially written to disk when the system loses power, resulting in both GPTs being corrupted. The second sync call ensures that the GPT update is committed to disk and will not be rolled back, and also that both GPTs are valid after the call to Write returns. Change-Id: I50b3cabee4ee8a3162766812e945e129358dd875 Reviewed-on: https://review.monogon.dev/c/monogon/+/3360 Reviewed-by: Lorenz Brun <lorenz@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! In the meantime, join us on Matrix (#monogon-os-community:matrix.org) or Discord.
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.
The source code lives in //metropolis (Metropolis is the codename of Monogon OS).
See the //metropolis/README.md for a developer quick start guide, or see the Monogon OS Handbook for user documentation.