1
0
mirror of https://github.com/rancher/os.git synced 2025-09-23 03:20:07 +00:00

Merge pull request #1760 from rancher/fix-upgrade-kexec

use --kexec for os upgrade, not -k
This commit is contained in:
Sven Dowideit
2017-04-07 19:36:43 +10:00
committed by GitHub

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)