From 90b059b608d6c53c8efb23b8791190dffadd1a17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Wed, 18 Sep 2019 17:52:30 +0200 Subject: pid1: do not warn if /run/systemd/relabel-extra.d/ doesn't exist After all, that is the expected state. --- src/core/mount-setup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/core/mount-setup.c') 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; -- cgit v1.2.1