mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 17:06:39 +09:00
udev: downgrade log level when running without cgroup
The cgroup path is optional, hence it is not necessary to warn the
failure loudly.
Follow-up for f8371dbd56.
Closes #28469.
This commit is contained in:
@@ -1845,7 +1845,7 @@ static int manager_new(Manager **ret, int fd_ctrl, int fd_uevent) {
|
||||
|
||||
r = cg_pid_get_path(SYSTEMD_CGROUP_CONTROLLER, 0, &cgroup);
|
||||
if (r < 0)
|
||||
log_warning_errno(r, "Failed to get cgroup, ignoring: %m");
|
||||
log_debug_errno(r, "Failed to get cgroup, ignoring: %m");
|
||||
else if (endswith(cgroup, "/udev")) { /* If we are in a subcgroup /udev/ we assume it was delegated to us */
|
||||
log_debug("Running in delegated subcgroup '%s'.", cgroup);
|
||||
manager->cgroup = TAKE_PTR(cgroup);
|
||||
|
||||
Reference in New Issue
Block a user