From: Mike Yuan Date: Mon, 25 Sep 2023 17:00:23 +0000 (+0800) Subject: core/main: log that we assume first boot if failed to read machine-id X-Git-Tag: v255-rc1~434^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=60e4b4291b0a59d77fb8d4b149d9d6672b274aed;p=thirdparty%2Fsystemd.git core/main: log that we assume first boot if failed to read machine-id --- diff --git a/src/core/main.c b/src/core/main.c index 6f779586d07..4ee5e8735f4 100644 --- a/src/core/main.c +++ b/src/core/main.c @@ -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.");