From: Lennart Poettering Date: Tue, 3 Jan 2012 20:02:13 +0000 (+0100) Subject: journald: treat a read-only /var identical to an unmounted one X-Git-Tag: v38~98 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=52f4f45bf48cfb757024f9abf49f1533b661397a journald: treat a read-only /var identical to an unmounted one --- diff --git a/Makefile.am b/Makefile.am index 1af9cbc5a..8bb5b9d94 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 44c2aa438..5c8e71365 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));