mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-11-23 23:10:57 +07:00
journald: treat a read-only /var identical to an unmounted one
This commit is contained in:
parent
85d83bf41c
commit
52f4f45bf4
@ -1175,6 +1175,7 @@ systemd_journald_CFLAGS = \
|
||||
systemd_journald_LDADD = \
|
||||
libsystemd-basic.la \
|
||||
libsystemd-daemon.la \
|
||||
libsystemd-login.la \
|
||||
$(ACL_LIBS)
|
||||
|
||||
if HAVE_XZ
|
||||
|
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user