Improve core/scripts:launch ergonomics
- Disable qemu monitor multiplexing. We don't need the monitor for most
debugging tasks, and disabling it means we can kill the VM using Ctrl-C.
- Strip metacharacters and DOS newlines from qemu serial output.
This makes logs easier to read in the CI, and prevents it from
messing with terminal settings locally.
- Copy swtpm_data to a temporary directory to ensure we never override
the build inputs (which can happen in a local run without sandbox).
Re-running the target no longer triggers rebuilds for swtpm_data.
- Remove local tag from :launch - it works fine in the sandbox.
Test Plan:
Ran the test multiple times, no rebuilds occurred:
bazel test core/scripts:test_boot
X-Origin-Diff: phab/D264
GitOrigin-RevId: 70d52e8a4cf24747d18fbaffeddb6e30bcdf61da
diff --git a/core/README.md b/core/README.md
index 48dd6a0..fec9d69 100644
--- a/core/README.md
+++ b/core/README.md
@@ -1,9 +1,6 @@
# Smalltown Operating System
-## Run build
-
-The build uses a Fedora 30 base image with a set of dependencies.
-Guide has been tested on a Fedora 30 host, with latest rW deployed.
+## Launch VM
Launch the VM:
@@ -11,4 +8,4 @@
scripts/bin/bazel run //core/scripts:launch
```
-Exit qemu using the monitor console: `Ctrl-A c quit`.
+Ctrl-C will kill the VM.