katautils: fix the issue of shimv2 boot failed with vsock enabled

shimv2 missed to enable vsock in KataAgentConfig.

Fixes: #1037

Signed-off-by: Fupan Li <lifupan@gmail.com>
This commit is contained in:
Fupan Li 2018-12-17 07:07:08 +00:00
parent bcf995bfe1
commit 573b73eb10

View File

@ -709,7 +709,10 @@ func updateConfig(configPath string, tomlConf tomlConfig, config *oci.RuntimeCon
config.ProxyType = vc.KataBuiltInProxyType
config.ShimType = vc.KataBuiltInShimType
config.AgentType = vc.KataContainersAgent
config.AgentConfig = vc.KataAgentConfig{LongLiveConn: true}
config.AgentConfig = vc.KataAgentConfig{
LongLiveConn: true,
UseVSock: config.HypervisorConfig.UseVSock,
}
}
return nil