diff options
| author | tv <tv@krebsco.de> | 2026-11-21 17:40:55 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-21 17:40:55 +0000 |
| commit | 5089201bd78c82687377a50ef33878d35407d23b (patch) | |
| tree | 6088b06ab0587131d7f0394b0e945cc077d77b97 /modules/host/egress.lua | |
| parent | 5b918e0b892a3c3eeddd866170eefe2cbd7e6ba3 (diff) | |
run-firecracker-vm: drives by label, not by vda, vdb, ...
The guest mounted its drives by their device names, which come in the
order the kernel probes the drives, not necessarily in their order in
the Firecracker configuration: booted with linuxPackages_latest, where
virtio_blk and virtio_mmio are modules, the base image and nix's came
swapped (vdb and vdc), which went unnoticed only because the store's
lower layers can be in any order. With /home or the rw-store swapped,
it wouldn't have been harmless.
Now the guest goes by filesystem labels: image k is fc-layer-K (mkfs.erofs
-L), the rw-store fc-store, and home fc-home. The run script labels
the ext4 images when it creates them, and existing ones, from before
labels, before the guest starts. This also drops the drive letters'
limit of 26 drives.
Diffstat (limited to 'modules/host/egress.lua')
0 files changed, 0 insertions, 0 deletions
