journald: treat a read-only /var identical to an unmounted one

This commit is contained in:
Lennart Poettering 2012-01-03 21:02:13 +01:00
parent 85d83bf41c
commit 52f4f45bf4
2 changed files with 2 additions and 1 deletions

View file

@ -1175,6 +1175,7 @@ systemd_journald_CFLAGS = \
systemd_journald_LDADD = \
libsystemd-basic.la \
libsystemd-daemon.la \
libsystemd-login.la \
$(ACL_LIBS)
if HAVE_XZ

View file

@ -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));