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

Commit

Permalink
Merge pull request #1687 from devimc/topic/katautils/maskSystemdPackages
Browse files Browse the repository at this point in the history
pkg/katautils: improve boot time disabling systemd units
  • Loading branch information
Graham Whaley authored May 16, 2019
2 parents 86d51f5 + a5e3550 commit f382cec
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions pkg/katautils/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit f382cec

Please sign in to comment.