1
0
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:
Sven Dowideit
2017-04-07 09:32:57 +00:00
parent 5a961b8887
commit fde6789d4a

View File

@@ -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)