aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-21 02:20:34 +0000
committertv <tv@krebsco.de>2026-11-21 04:03:41 +0100
commitaf7894cf1d695551ffc2211314d6f9bc5cc05feb (patch)
tree2cc3585637472462ee333e585da62e7dc5505c2e /README.md
parentddf2ffd52fc27e4abae1f2f06abd90411b1e0f47 (diff)
run-firecracker-vm: fc.home.required, for layers with state in /home
A layer that keeps its state in /home can set fc.home.required, and the run script then refuses to start the guest without --home, instead of booting with /home on the tmpfs, where the state is gone when the guest exits.
Diffstat (limited to 'README.md')
-rw-r--r--README.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/README.md b/README.md
index b00e196..cfa364e 100644
--- a/README.md
+++ b/README.md
@@ -77,6 +77,15 @@ from the store, so either can be kept or thrown away):
./result/bin/run-firecracker-vm --home ~/fc-home.img [--home-size 50G]
```
+A layer that keeps its state in `/home` can make that disk mandatory,
+so the state doesn't silently end up on the tmpfs:
+
+```nix
+{ fc.home.required = true; }
+```
+
+The run script then refuses to start the guest without `--home`.
+
`/nixpkgs` is the nixpkgs the guest was built from (`<nixpkgs>`, checkout
or not); `--nixpkgs DIR` serves another one. It's not cached in the
guest, so changes to it show up right away, but evaluating is slow;