pkg/katautils: Do not set init in the kernel command line

Currently kata sets the init process to systemd even when it isn't installed,
the criteria to determinate whether systemd is used as init or not
is very odd, since kata only checks whether the `image` option is set in the
configuration file, unfortunately not all images have systemd installed.
Instead kata should rely on the guest kernel and `osbuilder` to use the right
init process. `osbuilder` creates a symbolic link to `systemd` or `kata-agent`
depending on the `AGENT_INIT` environment variable.

fixes #1937

Signed-off-by: Julio Montes <julio.montes@intel.com>
This commit is contained in:
Julio Montes 2019-08-06 15:45:19 +00:00
parent 00e0aaa6e4
commit 0832294ba1

View File

@ -19,10 +19,6 @@ import (
var GetKernelParamsFunc = getKernelParams var GetKernelParamsFunc = getKernelParams
var systemdKernelParam = []vc.Param{ var systemdKernelParam = []vc.Param{
{
Key: "init",
Value: "/usr/lib/systemd/systemd",
},
{ {
Key: "systemd.unit", Key: "systemd.unit",
Value: systemdUnitName, Value: systemdUnitName,