]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
nspawn: decrease mkdir error logging in /sys to debug priority (#3748)
authortblume <Thomas.Blume@suse.com>
Mon, 18 Jul 2016 10:23:08 +0000 (12:23 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 18 Jul 2016 10:23:08 +0000 (12:23 +0200)
Such mkdir errors happen for example when trying to mkdir /sys/fs/selinux.

/sys is documented to be readonly in the container, so mkdir errors below /sys
can be expected.
They shouldn't be logged as warnings since they lead users to think that
there is something wrong.

src/nspawn/nspawn-mount.c

index 8e2d2d543ce075507a4e89755963ef0966c91330..9f4903c8424b464f954de88f6a7c735a4eb5f0c9 100644 (file)
@@ -342,7 +342,7 @@ int mount_all(const char *dest,
                         if (mount_table[k].fatal)
                                 return log_error_errno(r, "Failed to create directory %s: %m", where);
 
-                        log_warning_errno(r, "Failed to create directory %s: %m", where);
+                        log_debug_errno(r, "Failed to create directory %s: %m", where);
                         continue;
                 }