From 1d1e32b91fca92e32ab95474dcfdddf43bf03193 Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 20 Nov 2026 05:09:07 +0000 Subject: run-firecracker-vm: name layer images after their files A layer's image is now firecracker-layer-K-NAME.img, NAME being the layer's file name without .nix (or, for .../NAME/default.nix, NAME). Layers that aren't files, and the base system, keep just the number. --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index 66eed4a..e2c809f 100644 --- a/README.md +++ b/README.md @@ -90,7 +90,8 @@ nix-build pkgs/run-firecracker-vm --arg layers '[ ./base-tools.nix ./my-service. The guest runs the top layer's system. Each layer gets its own image, with only the store paths the layers below don't have, so the base image, and those of layers below, stay the same whatever goes on top: -a service layer costs a small image of its own. Changing a layer +a service layer costs a small image of its own, named after its file +(`firecracker-layer-2-my-service.img`). Changing a layer changes the images of the layers above it. To use a cut-down kernel, based on Firecracker's recommended guest -- cgit v1.3.1