mirror of
https://github.com/aljazceru/kata-containers.git
synced 2025-12-23 09:14:27 +01:00
cli: do not set ip based kernel parameter
For one thing, it is not used by any kata components. For another thing, it breaks vm factory hypervisor config check. Signed-off-by: Peng Tao <bergwolf@gmail.com>
This commit is contained in:
@@ -838,7 +838,7 @@ func TestCreateInvalidKernelParams(t *testing.T) {
|
||||
getKernelParamsFunc = savedFunc
|
||||
}()
|
||||
|
||||
getKernelParamsFunc = func(containerID string, needSystemd bool) []vc.Param {
|
||||
getKernelParamsFunc = func(needSystemd bool) []vc.Param {
|
||||
return []vc.Param{
|
||||
{
|
||||
Key: "",
|
||||
@@ -1135,7 +1135,9 @@ func TestSetKernelParams(t *testing.T) {
|
||||
err := setKernelParams(testContainerID, &config)
|
||||
assert.NoError(err)
|
||||
|
||||
assert.NotEmpty(config.HypervisorConfig.KernelParams)
|
||||
if needSystemd(config.HypervisorConfig) {
|
||||
assert.NotEmpty(config.HypervisorConfig.KernelParams)
|
||||
}
|
||||
}
|
||||
|
||||
func TestSetKernelParamsUserOptionTakesPriority(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user