71640662e0
This re-arranges phases a bit so that shutdown actions are pushed back to the top-level main.go of machined. Small rudimentary event.Bus is introduce to facilitate event passing (shutdown/restart) between various machined components and main.go. This might be not the best implementation, just something to allow this message passing without global variables or such. Machined API was refactored to run as goroutine service. ACPI & signal handlers re-built as phase tasks, and activated for non-container, container modes respectively. As part of the fix, now `docker stop` triggers correct shutdown of Talos (not a big deal, but good for testing). Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com> |
||
---|---|---|
.. | ||
golangci-lint.yaml | ||
test.sh |