]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core/main: log that we assume first boot if failed to read machine-id
authorMike Yuan <me@yhndnzj.com>
Mon, 25 Sep 2023 17:00:23 +0000 (01:00 +0800)
committerMike Yuan <me@yhndnzj.com>
Mon, 25 Sep 2023 17:00:23 +0000 (01:00 +0800)
src/core/main.c

index 6f779586d077265f99c80f5b42f3ed5741767172..4ee5e8735f42b19dff1487097c93e396da71f2cd 100644 (file)
@@ -2151,7 +2151,7 @@ static void log_execution_mode(bool *ret_first_boot) {
                                 r = read_one_line_file("/etc/machine-id", &id_text);
                                 if (r < 0 || streq(id_text, "uninitialized")) {
                                         if (r < 0 && r != -ENOENT)
-                                                log_warning_errno(r, "Unexpected error while reading /etc/machine-id, ignoring: %m");
+                                                log_warning_errno(r, "Unexpected error while reading /etc/machine-id, assuming first boot: %m");
 
                                         first_boot = true;
                                         log_info("Detected first boot.");