mirror of
https://github.com/kubereboot/kured.git
synced 2026-03-04 09:50:19 +00:00
Without this patch, you cannot configure the reboot command to use, or the use another command to trigger a reboot. This is a problem, as multiple users have asked for it in the past, and we are lacking flexibility. This fixes it by introducing two new parameters, - one to provide a custom reboot command. This should help people running kured on non systemd OS - one to provide a custom sentinel command. This should help people running non Ubuntu OS, as they can directly use their command instead of generating a file (useful for CentOS/SUSE) For this, several refactors had to be done, to remove global state in some functions. Making those functions closer to "pure functions" helps us increase our test coverage here and later. As commandReboot was very close to rebootCommand, the function to reboot the node has been renamed to invokeReboot.