With the switch from log_debug() to log_debug_errno() in commit
c413bb28df
systemd-update-done would fail without any error message if /etc
or /var were read-only. This restores the previous behaviour to
silently ignore these directories again.
r = write_string_file_atomic_label_ts(path, message, ts);
if (r == -EROFS)
- return log_debug_errno(r, "Cannot create \"%s\", file system is read-only.", path);
- if (r < 0)
+ log_debug_errno(r, "Cannot create \"%s\", file system is read-only.", path);
+ else if (r < 0)
return log_error_errno(r, "Failed to write \"%s\": %m", path);
return 0;
}