mirror of
https://github.com/systemd/systemd.git
synced 2024-11-23 18:23:32 +08:00
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
This commit is contained in:
parent
d48cfc98eb
commit
ea4f2d5fb7
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user