From aefec2f7cd98685116ff0949bf3417b36f107195 Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Mon, 31 Oct 2022 23:34:32 +0100 Subject: [PATCH] Don't warn on read-only /var/log filesystem. --- init/init.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/init/init.c b/init/init.c index 3a75d0e7..16b83881 100644 --- a/init/init.c +++ b/init/init.c @@ -440,7 +440,8 @@ static bool log_open(struct log* log) log->fd = open(log->path, logflags, log->file_mode); if ( log->fd < 0 ) { - log_error(log, "", NULL); + if ( errno != EROFS ) + log_error(log, "", NULL); // Don't block daemon startup on read-only filesystems. return errno == EROFS; }