mirror of
https://github.com/vhaudiquet/ecrou.git
synced 2026-11-12 22:22:44 +00:00
run() probes KVM, prepares the rootfs through the cache, generates the guest init into the scratch, wires a libkrun context to it, and blocks in krun_start_enter on this thread; the exit code comes back through the control file, and a killed consumer kills the machine with the process. Shares are validated and tagged in one place so the script and the virtiofs setup stay ordered; anything overlapping the scratch rootfs is refused, since the guest could otherwise rewrite its own init. The guest environment is composed from scratch; the host environment never crosses.