mirror of
https://github.com/kata-containers/kata-containers.git
synced 2026-07-11 00:52:00 +00:00
createContainer hooks run in the forked container child, where kata-agent's async slog drain (its background thread) does not exist, so `error!` from a failing hook is silently dropped and the failure leaves no trace at all. Mirror hook failures to /dev/kmsg, the one log sink that survives the fork and reaches the guest console, so a hook that can't be found or exits non-zero is at least visible when debugging. Failures only.