pkg/katautils: improve boot time disabling systemd units

There are still some systemd units that fail to start for different
reasons. Disable these systemd units to improve boot time.

fixes #1686

Signed-off-by: Julio Montes <julio.montes@intel.com>
This commit is contained in:
Julio Montes 2019-05-15 12:01:45 -05:00
parent 86d51f59d4
commit a5e3550d4c

View File

@ -52,6 +52,10 @@ var noTraceKernelParam = []vc.Param{
Key: "systemd.mask",
Value: "systemd-journal-flush.service",
},
{
Key: "systemd.mask",
Value: "systemd-journald-dev-log.socket",
},
// No udev events: agent implements udev events
{
Key: "systemd.mask",
@ -65,6 +69,14 @@ var noTraceKernelParam = []vc.Param{
Key: "systemd.mask",
Value: "systemd-udev-trigger.service",
},
{
Key: "systemd.mask",
Value: "systemd-udevd-kernel.socket",
},
{
Key: "systemd.mask",
Value: "systemd-udevd-control.socket",
},
// No timesync: kata is able to setup the time and this service consume network
{
Key: "systemd.mask",
@ -98,6 +110,11 @@ var noTraceKernelParam = []vc.Param{
Key: "systemd.mask",
Value: "systemd-random-seed.service",
},
// No coredump
{
Key: "systemd.mask",
Value: "systemd-coredump@.service",
},
}
func getKernelParams(needSystemd, trace bool) []vc.Param {