diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-06-03 16:45:47 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-06-04 03:20:47 +0900 |
commit | ea4f2d5fb7875e47441f736d6298f3930180647b (patch) | |
tree | cbf49488a122ec02482b8a541961f70ccd39128a | |
parent | d48cfc98ebe3ceb299171ab4fd4c407b09fea5be (diff) | |
download | systemd-ea4f2d5fb7875e47441f736d6298f3930180647b.tar.gz |
core: suppress message about missing libbpf if in initrd()
It is quite likely that libbpf is not present in the initrd, and
there isn't much reason to use the bpf filters there.
https://bugzilla.redhat.com/show_bug.cgi?id=2084955#c25
-rw-r--r-- | src/core/bpf-util.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/bpf-util.c b/src/core/bpf-util.c index 9130aa373f..84170da0a8 100644 --- a/src/core/bpf-util.c +++ b/src/core/bpf-util.c @@ -26,7 +26,8 @@ bool cgroup_bpf_supported(void) { r = dlopen_bpf(); if (r < 0) { - log_info_errno(r, "Failed to open libbpf, cgroup BPF features disabled: %m"); + log_full_errno(in_initrd() ? LOG_DEBUG : LOG_INFO, + r, "Failed to open libbpf, cgroup BPF features disabled: %m"); return (supported = false); } |