Skip to content

Commit 7e5f462

Browse files
YHNdnzjbluca
authored andcommitted
core/main: log that we assume first boot if failed to read machine-id
(cherry picked from commit 60e4b42) (cherry picked from commit c58c69a) (cherry picked from commit e13981d)
1 parent dd8b610 commit 7e5f462

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2086,7 +2086,7 @@ static void log_execution_mode(bool *ret_first_boot) {
20862086
r = read_one_line_file("/etc/machine-id", &id_text);
20872087
if (r < 0 || streq(id_text, "uninitialized")) {
20882088
if (r < 0 && r != -ENOENT)
2089-
log_warning_errno(r, "Unexpected error while reading /etc/machine-id, ignoring: %m");
2089+
log_warning_errno(r, "Unexpected error while reading /etc/machine-id, assuming first boot: %m");
20902090

20912091
first_boot = true;
20922092
log_info("Detected first boot.");

0 commit comments

Comments
 (0)