mirror of
https://github.com/rancher/os.git
synced 2025-09-16 06:59:12 +00:00
Fixes the following scenario can not reboot (#2236)
1. use ros install 2. use ros os upgrade
This commit is contained in:
@@ -190,6 +190,7 @@ func Kexec(previous bool, bootDir, append string) error {
|
||||
// Reboot is used by installation / upgrade
|
||||
// TODO: add kexec option
|
||||
func Reboot() {
|
||||
os.Args = []string{"reboot"}
|
||||
reboot("reboot", false, syscall.LINUX_REBOOT_CMD_RESTART)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user