chiark / gitweb /
nspawn: allow to bind mount journal on top of a non empty container journal dentry
[elogind.git] / src / nspawn / nspawn.c
index 9d9238fdb51b191d45ce6b3b3c6ff7874d013834..ef84664dfeefff4dbdf61387c3c9e3d7e7e179ac 100644 (file)
@@ -1143,11 +1143,6 @@ static int setup_journal(const char *directory) {
         } else if (access(p, F_OK) < 0)
                 return 0;
 
-        if (dir_is_empty(q) == 0) {
-                log_error("%s not empty.", q);
-                return -ENOTEMPTY;
-        }
-
         r = mkdir_p(q, 0755);
         if (r < 0) {
                 log_error("Failed to create %s: %m", q);