Skip to content

Commit

Permalink
virtcontainers: clh: Use 'quiet' as the default kernel parameter
Browse files Browse the repository at this point in the history
The 'quiet' kernel parameter can avoid guest kernel logs while booting,
which can reduce boot time.

Fix: #2820

Signed-off-by: Bo Chen <[email protected]>
(cherry picked from commit 7b2bfd4)
  • Loading branch information
likebreath authored and fidencio committed Oct 14, 2021
1 parent 1e798b9 commit eea2c01
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/runtime/virtcontainers/clh.go
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,9 @@ func (clh *cloudHypervisor) createSandbox(ctx context.Context, id string, networ
// Followed by extra debug parameters if debug enabled in configuration file
if clh.config.Debug {
params = append(params, clhDebugKernelParams...)
} else {
// start the guest kernel with 'quiet' in non-debug mode
params = append(params, Param{"quiet", ""})
}

// Followed by extra kernel parameters defined in the configuration file
Expand Down

0 comments on commit eea2c01

Please sign in to comment.