feat: change poweroff to take effect 5 seconds after requested #3126
Labels
enhancement
New feature or request
triage
Add this label to issues that should be triaged and prioretized in the next planning call
The current functionality of poweroff waits 5 seconds from the kairos side and then 1 min from the shutdown command to go into effect. The idea is to give enough room to the interactive user to cancel the request, but having to wait 1min and 5sec for the non interactive user is a bit too long.
Let's change this to give a message leeting the user know they have 5 seconds to cancel
https://github.com/kairos-io/kairos-agent/blob/347a30b261d055b4876dd298816a9d503cdbb926/internal/agent/hooks/lifecycle.go#L20-L21
And then change
shutdown
to doshutdown now
https://github.com/kairos-io/kairos-sdk/blob/a2d305dd6d7fcda8378151c02b9335944cc5e953/utils/utils.go#L261
The text was updated successfully, but these errors were encountered: