From 0832294ba10507a3544210dd018630bdd3f523aa Mon Sep 17 00:00:00 2001 From: Julio Montes Date: Tue, 6 Aug 2019 15:45:19 +0000 Subject: [PATCH] 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 --- pkg/katautils/create.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pkg/katautils/create.go b/pkg/katautils/create.go index 825984d7c9..aa4a0747e1 100644 --- a/pkg/katautils/create.go +++ b/pkg/katautils/create.go @@ -19,10 +19,6 @@ import ( var GetKernelParamsFunc = getKernelParams var systemdKernelParam = []vc.Param{ - { - Key: "init", - Value: "/usr/lib/systemd/systemd", - }, { Key: "systemd.unit", Value: systemdUnitName,