Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
pkg/katautils: Do not set init in the kernel command line
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Julio Montes committed Aug 6, 2019
1 parent 00e0aaa commit 0832294
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions pkg/katautils/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ import (
var GetKernelParamsFunc = getKernelParams

var systemdKernelParam = []vc.Param{
{
Key: "init",
Value: "/usr/lib/systemd/systemd",
},
{
Key: "systemd.unit",
Value: systemdUnitName,
Expand Down

0 comments on commit 0832294

Please sign in to comment.