use systemctl reboot instead of reboot
@@ -162,7 +162,7 @@ var (
// as systemd will time out the stop invocation.
func rebootCommand(rationale string) *exec.Cmd {
return exec.Command("systemd-run", "--unit", "machine-config-daemon-reboot",
- "--description", fmt.Sprintf("machine-config-daemon: %s", rationale), "/bin/sh", "-c", "systemctl stop kubelet.service; reboot")
+ "--description", fmt.Sprintf("machine-config-daemon: %s", rationale), "/bin/sh", "-c", "systemctl stop kubelet.service; systemctl reboot")
}
// getBootID loads the unique "boot id" which is generated by the Linux kernel.
