pid1: do not warn if /run/systemd/relabel-extra.d/ doesn't exist
After all, that is the expected state.
This commit is contained in:
@@ -469,7 +469,8 @@ static int relabel_extra(void) {
|
||||
}
|
||||
|
||||
/* Remove when we complete things. */
|
||||
if (rmdir("/run/systemd/relabel-extra.d") < 0)
|
||||
if (rmdir("/run/systemd/relabel-extra.d") < 0 &&
|
||||
errno != ENOENT)
|
||||
log_warning_errno(errno, "Failed to remove /run/systemd/relabel-extra.d/ directory: %m");
|
||||
|
||||
return c;
|
||||
|
||||
Reference in New Issue
Block a user