From ff85b3c92952c3afd8a5b50adad105ac22cd99cc Mon Sep 17 00:00:00 2001 From: Elio Bischof Date: Wed, 13 Oct 2021 16:37:35 +0200 Subject: [PATCH] fix: send SIGINT to PID 1 on reboot --- internal/operator/nodeagent/dep/kernel/dep.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/operator/nodeagent/dep/kernel/dep.go b/internal/operator/nodeagent/dep/kernel/dep.go index 04148c09f..f1cbe5dc8 100644 --- a/internal/operator/nodeagent/dep/kernel/dep.go +++ b/internal/operator/nodeagent/dep/kernel/dep.go @@ -114,7 +114,7 @@ func (k *kernelDep) Ensure(remove common.Package, ensure common.Package) error { return fmt.Errorf("couldn't find a corresponding initramfs file corresponding kernel version %s. Not rebooting", ensure.Version) } - return syscall.Reboot(syscall.LINUX_REBOOT_CMD_RESTART) + return syscall.Reboot(syscall.LINUX_REBOOT_CMD_CAD_OFF) } func (k *kernelDep) kernelVersions() (loadedKernel string, corruptedKernels []string, err error) {