diff options
| author | tv <tv@krebsco.de> | 2026-11-25 13:00:36 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-25 13:00:36 +0000 |
| commit | 2ca2286661d64b4f93bba4c6a998e271be65d5f4 (patch) | |
| tree | 6b9b02cc844c9f009fb1a66c5472ad371a0b3751 /base/kernel.nix | |
| parent | b54b98a0b11bac582286899115d40ddff168a948 (diff) | |
run-firecracker-vm: reboot and poweroff both end the VM, in either VMM
Firecracker ends on a reset (reboot, with reboot=k), but stays on
poweroff, with the guest halted; Cloud Hypervisor ends on poweroff, but
restarts the guest on a reset. So which one left the VM depended on the
VMM. Now the run script tells the guest (fc.vmm on the kernel command
line), and a generator, fc-vmm-exit, changes the shutdown's last step,
the SuccessAction of systemd-poweroff and -halt to reboot-force in
Firecracker, and of systemd-reboot and -halt to poweroff-force in Cloud
Hypervisor, after the same clean shutdown. Not a hook of
systemd-shutdown, which runs those after unmounting, i.e. without /etc,
an overlay here (found out the hard way: the first version, with such a
hook, did nothing).
Diffstat (limited to 'base/kernel.nix')
0 files changed, 0 insertions, 0 deletions
