summaryrefslogtreecommitdiff
path: root/src/nspawn
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-04-07 16:03:45 +0200
committerLennart Poettering <lennart@poettering.net>2015-04-07 16:03:45 +0200
commitda00518b3f3a8b08d521c4b72068eafa2db566cc (patch)
treecbfbc00d68a4cc59474a382510e8d5008c2ab594 /src/nspawn
parent2c0223282d804ec796c3dc7e0d9087717314ec6a (diff)
path-util: fix more path_is_mount e792e890f fallout
Diffstat (limited to 'src/nspawn')
-rw-r--r--src/nspawn/nspawn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c
index 9371d361eb..6789281d81 100644
--- a/src/nspawn/nspawn.c
+++ b/src/nspawn/nspawn.c
@@ -889,7 +889,7 @@ static int mount_all(const char *dest) {
return log_oom();
t = path_is_mount_point(where, true);
- if (t < 0) {
+ if (t < 0 && t != -ENOENT) {
log_error_errno(t, "Failed to detect whether %s is a mount point: %m", where);
if (r == 0)
@@ -1028,7 +1028,7 @@ static int mount_cgroup_hierarchy(const char *dest, const char *controller, cons
to = strjoina(dest, "/sys/fs/cgroup/", hierarchy);
r = path_is_mount_point(to, false);
- if (r < 0)
+ if (r < 0 && r != -ENOENT)
return log_error_errno(r, "Failed to determine if %s is mounted already: %m", to);
if (r > 0)
return 0;