mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-13 15:14:08 +00:00
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:
parent
86d51f59d4
commit
a5e3550d4c
@ -52,6 +52,10 @@ var noTraceKernelParam = []vc.Param{
|
|||||||
Key: "systemd.mask",
|
Key: "systemd.mask",
|
||||||
Value: "systemd-journal-flush.service",
|
Value: "systemd-journal-flush.service",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
Key: "systemd.mask",
|
||||||
|
Value: "systemd-journald-dev-log.socket",
|
||||||
|
},
|
||||||
// No udev events: agent implements udev events
|
// No udev events: agent implements udev events
|
||||||
{
|
{
|
||||||
Key: "systemd.mask",
|
Key: "systemd.mask",
|
||||||
@ -65,6 +69,14 @@ var noTraceKernelParam = []vc.Param{
|
|||||||
Key: "systemd.mask",
|
Key: "systemd.mask",
|
||||||
Value: "systemd-udev-trigger.service",
|
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
|
// No timesync: kata is able to setup the time and this service consume network
|
||||||
{
|
{
|
||||||
Key: "systemd.mask",
|
Key: "systemd.mask",
|
||||||
@ -98,6 +110,11 @@ var noTraceKernelParam = []vc.Param{
|
|||||||
Key: "systemd.mask",
|
Key: "systemd.mask",
|
||||||
Value: "systemd-random-seed.service",
|
Value: "systemd-random-seed.service",
|
||||||
},
|
},
|
||||||
|
// No coredump
|
||||||
|
{
|
||||||
|
Key: "systemd.mask",
|
||||||
|
Value: "systemd-coredump@.service",
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
func getKernelParams(needSystemd, trace bool) []vc.Param {
|
func getKernelParams(needSystemd, trace bool) []vc.Param {
|
||||||
|
Loading…
Reference in New Issue
Block a user