chiark / gitweb /
journald: treat a read-only /var identical to an unmounted one
authorLennart Poettering <lennart@poettering.net>
Tue, 3 Jan 2012 20:02:13 +0000 (21:02 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 3 Jan 2012 20:08:58 +0000 (21:08 +0100)
Makefile.am
src/journal/journald.c

index 1af9cbc..8bb5b9d 100644 (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
index 44c2aa4..5c8e713 100644 (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));