mirror of
https://github.com/systemd/systemd.git
synced 2025-01-27 18:04:05 +03:00
update-done: Do not fail with read-only /etc or /var
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.
This commit is contained in:
parent
4b28e50f9e
commit
1eee15c388
@ -31,8 +31,8 @@ static int apply_timestamp(const char *path, struct timespec *ts) {
|
|||||||
|
|
||||||
r = write_string_file_atomic_label_ts(path, message, ts);
|
r = write_string_file_atomic_label_ts(path, message, ts);
|
||||||
if (r == -EROFS)
|
if (r == -EROFS)
|
||||||
return log_debug_errno(r, "Cannot create \"%s\", file system is read-only.", path);
|
log_debug_errno(r, "Cannot create \"%s\", file system is read-only.", path);
|
||||||
if (r < 0)
|
else if (r < 0)
|
||||||
return log_error_errno(r, "Failed to write \"%s\": %m", path);
|
return log_error_errno(r, "Failed to write \"%s\": %m", path);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user