fix: disable kexec on GCP/Azure
It looks like VMs might be stuck on kexec, while there's little value in kexec with VMs. Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
This commit is contained in:
parent
911c255742
commit
b0466e0abf
@ -223,6 +223,9 @@ func (a *Azure) KernelArgs(string) procfs.Parameters {
|
||||
procfs.NewParameter("rootdelay").Append("300"),
|
||||
procfs.NewParameter(constants.KernelParamNetIfnames).Append("0"),
|
||||
procfs.NewParameter(constants.KernelParamDashboardDisabled).Append("1"),
|
||||
// disable 'kexec' as Azure VMs sometimes are stuck on kexec, and normal soft reboot
|
||||
// doesn't take much longer on VMs
|
||||
procfs.NewParameter("sysctl.kernel.kexec_load_disabled").Append("1"),
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -204,6 +204,9 @@ func (g *GCP) KernelArgs(string) procfs.Parameters {
|
||||
procfs.NewParameter("console").Append("ttyS0"),
|
||||
procfs.NewParameter(constants.KernelParamNetIfnames).Append("0"),
|
||||
procfs.NewParameter(constants.KernelParamDashboardDisabled).Append("1"),
|
||||
// disable 'kexec' as GCP VMs sometimes are stuck on kexec, and normal soft reboot
|
||||
// doesn't take much longer on VMs
|
||||
procfs.NewParameter("sysctl.kernel.kexec_load_disabled").Append("1"),
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user