From 90b059b608d6c53c8efb23b8791190dffadd1a17 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Wed, 18 Sep 2019 17:52:30 +0200 Subject: [PATCH] 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(-) diff --git a/src/core/mount-setup.c b/src/core/mount-setup.c index 72cf5a2..9d9263e 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; -- 2.7.4