1
0
mirror of https://github.com/rancher/os.git synced 2025-09-04 08:14:21 +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", Usage: "do not reboot after upgrade",
}, },
cli.BoolFlag{ cli.BoolFlag{
Name: "kexec", Name: "kexec, k",
Usage: "reboot using kexec", Usage: "reboot using kexec",
}, },
cli.StringFlag{ cli.StringFlag{
@@ -206,7 +206,7 @@ func startUpgradeContainer(image string, stage, force, reboot, kexec bool, upgra
} }
if kexec { if kexec {
command = append(command, "-k") command = append(command, "--kexec")
} }
kernelArgs = strings.TrimSpace(kernelArgs) kernelArgs = strings.TrimSpace(kernelArgs)