summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am1
-rw-r--r--src/journal/journald.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 1af9cbc5a5..8bb5b9d949 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1175,6 +1175,7 @@ systemd_journald_CFLAGS = \
systemd_journald_LDADD = \
libsystemd-basic.la \
libsystemd-daemon.la \
+ libsystemd-login.la \
$(ACL_LIBS)
if HAVE_XZ
diff --git a/src/journal/journald.c b/src/journal/journald.c
index 44c2aa4385..5c8e713657 100644
--- a/src/journal/journald.c
+++ b/src/journal/journald.c
@@ -1196,7 +1196,7 @@ static int system_journal_open(Server *s) {
fix_perms(s->system_journal, 0);
} else if (r < 0) {
- if (r == -ENOENT)
+ if (r == -ENOENT || r == -EROFS)
r = 0;
else {
log_error("Failed to open system journal: %s", strerror(-r));