Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

Commit

Permalink
fix: send SIGINT to PID 1 on reboot
Browse files Browse the repository at this point in the history
  • Loading branch information
eliobischof committed Oct 13, 2021
1 parent 3f6b358 commit ff85b3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/operator/nodeagent/dep/kernel/dep.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit ff85b3c

Please # to comment.