mirror of
https://github.com/rancher/os.git
synced 2025-08-31 14:23:11 +00:00
use --kexec for os upgrade, not -k
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
@@ -53,7 +53,7 @@ func osSubcommands() []cli.Command {
|
||||
Usage: "do not reboot after upgrade",
|
||||
},
|
||||
cli.BoolFlag{
|
||||
Name: "kexec",
|
||||
Name: "kexec, k",
|
||||
Usage: "reboot using kexec",
|
||||
},
|
||||
cli.StringFlag{
|
||||
@@ -206,7 +206,7 @@ func startUpgradeContainer(image string, stage, force, reboot, kexec bool, upgra
|
||||
}
|
||||
|
||||
if kexec {
|
||||
command = append(command, "-k")
|
||||
command = append(command, "--kexec")
|
||||
}
|
||||
|
||||
kernelArgs = strings.TrimSpace(kernelArgs)
|
||||
|
Reference in New Issue
Block a user