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:
@@ -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)
|
||||||
|
Reference in New Issue
Block a user