mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-29 16:57:18 +00:00
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:
parent
00e0aaa6e4
commit
0832294ba1
@ -19,10 +19,6 @@ import (
|
||||
var GetKernelParamsFunc = getKernelParams
|
||||
|
||||
var systemdKernelParam = []vc.Param{
|
||||
{
|
||||
Key: "init",
|
||||
Value: "/usr/lib/systemd/systemd",
|
||||
},
|
||||
{
|
||||
Key: "systemd.unit",
|
||||
Value: systemdUnitName,
|
||||
|
Loading…
Reference in New Issue
Block a user