chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97c52b8
)
nspawn: restore journal directory is empty check
author
Lennart Poettering
<lennart@poettering.net>
Thu, 22 May 2014 06:19:46 +0000
(15:19 +0900)
committer
Lennart Poettering
<lennart@poettering.net>
Thu, 22 May 2014 06:21:01 +0000
(15:21 +0900)
This undoes part of commit
e6a4a517befe559adf6d1dbbadf425c3538849c9
.
Instead of removing the error message about non-empty journal bind mount
directories, simply downgrade the message to a warning and proceed.
src/nspawn/nspawn.c
patch
|
blob
|
history
diff --git
a/src/nspawn/nspawn.c
b/src/nspawn/nspawn.c
index ef84664dfeefff4dbdf61387c3c9e3d7e7e179ac..eb9c5e0d6c8a19e0aae7cca0b9dfb821ea35405d 100644
(file)
--- a/
src/nspawn/nspawn.c
+++ b/
src/nspawn/nspawn.c
@@
-1143,6
+1143,9
@@
static int setup_journal(const char *directory) {
} else if (access(p, F_OK) < 0)
return 0;
+ if (dir_is_empty(q) == 0)
+ log_warning("%s is not empty, proceeding anyway.", q);
+
r = mkdir_p(q, 0755);
if (r < 0) {
log_error("Failed to create %s: %m", q);