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 1af9cbc5a5ff92e751cc8eb472a851ca3275be3b..8bb5b9d9491dbc9fc539a3f5acd7c8c92e2f41d9 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 44c2aa43854ff7d06d50c4372421ec96c4e3d04e..5c8e713657409e9a57e920c94809c891fdcc0051 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));