Skip to content

Commit c58c69a

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

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

22062206
first_boot = true;
22072207
log_info("Detected first boot.");

0 commit comments

Comments
 (0)