Skip to content

Commit e13981d

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)
1 parent f274f63 commit e13981d

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
@@ -2129,7 +2129,7 @@ static void log_execution_mode(bool *ret_first_boot) {
21292129
r = read_one_line_file("/etc/machine-id", &id_text);
21302130
if (r < 0 || streq(id_text, "uninitialized")) {
21312131
if (r < 0 && r != -ENOENT)
2132-
log_warning_errno(r, "Unexpected error while reading /etc/machine-id, ignoring: %m");
2132+
log_warning_errno(r, "Unexpected error while reading /etc/machine-id, assuming first boot: %m");
21332133

21342134
first_boot = true;
21352135
log_info("Detected first boot.");

0 commit comments

Comments
 (0)