From 52f4f45bf48cfb757024f9abf49f1533b661397a Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 3 Jan 2012 21:02:13 +0100 Subject: [PATCH] journald: treat a read-only /var identical to an unmounted one --- Makefile.am | 1 + src/journal/journald.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 1af9cbc5..8bb5b9d9 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 44c2aa43..5c8e7136 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)); -- 2.39.5