summaryrefslogtreecommitdiff
path: root/src/core/mount-setup.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-09-18 17:52:30 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-09-19 18:01:40 +0200
commit90b059b608d6c53c8efb23b8791190dffadd1a17 (patch)
treefbd4c4d3ecaec9fe9af3e08044ab8cbe58405684 /src/core/mount-setup.c
parent5a4717fe8e6aef06cbb532862ad55bc3280eff42 (diff)
downloadsystemd-90b059b608d6c53c8efb23b8791190dffadd1a17.tar.gz
pid1: do not warn if /run/systemd/relabel-extra.d/ doesn't exist
After all, that is the expected state.
Diffstat (limited to 'src/core/mount-setup.c')
-rw-r--r--src/core/mount-setup.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/mount-setup.c b/src/core/mount-setup.c
index 72cf5a2caa..9d9263e8fa 100644
--- a/src/core/mount-setup.c
+++ b/src/core/mount-setup.c
@@ -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;