virtcontainers: clh: Use 'quiet' as the default kernel parameter

The 'quiet' kernel parameter can avoid guest kernel logs while booting,
which can reduce boot time.

Fix: #2820

Signed-off-by: Bo Chen <chen.bo@intel.com>
(cherry picked from commit 7b2bfd4eca)
This commit is contained in:
Bo Chen 2021-10-11 17:41:13 -07:00 committed by Fabiano Fidêncio
parent 1e798b96fd
commit eea2c0195f

View File

@ -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