Disable KernLog in container

No need to save seqno when we've detected being in container and have
disabled kernel logging.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg 2022-03-05 15:30:21 +01:00
parent 40622ef6c7
commit e4330515e8

View File

@ -501,6 +501,7 @@ int main(int argc, char *argv[])
*/ */
if (KernLog) { if (KernLog) {
if (in_container()) { if (in_container()) {
KernLog = 0;
no_sys = 1; no_sys = 1;
goto no_klogd; goto no_klogd;
} }