]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
bootctl: downgrade messages about foreign EFI files
authorLennart Poettering <lennart@poettering.net>
Tue, 2 Sep 2025 20:41:48 +0000 (22:41 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 19 Sep 2025 15:47:46 +0000 (00:47 +0900)
Given that we iterate through $ESP/EFI/BOOT/*.EFI these days this is a
pretty common case, hence it's not really noteworthy, hence downgrade
these log messages from LOG_NOTICE to LOG_INFO.

src/bootctl/bootctl-install.c

index 3605b43ef03ea6047cbdecbcf51332ebc2ab0cb1..df5065b7986e939ca80b43dd0d2f14fd9b2ef073 100644 (file)
@@ -210,13 +210,12 @@ static int version_check(int fd_from, const char *from, int fd_to, const char *t
 
         r = get_file_version(fd_to, &b);
         if (r == -ESRCH)
-                return log_notice_errno(r, "Skipping \"%s\", it's owned by another boot loader (no version info found).",
-                                        to);
+                return log_info_errno(r, "Skipping \"%s\", it's owned by another boot loader (no version info found).", to);
         if (r < 0)
                 return r;
         if (compare_product(a, b) != 0)
-                return log_notice_errno(SYNTHETIC_ERRNO(ESRCH),
-                                        "Skipping \"%s\", it's owned by another boot loader.", to);
+                return log_info_errno(SYNTHETIC_ERRNO(ESRCH),
+                                      "Skipping \"%s\", it's owned by another boot loader.", to);
 
         r = compare_version(a, b);
         log_debug("Comparing versions: \"%s\" %s \"%s\"", a, comparison_operator(r), b);