]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
bootctl: drop redundant log message
authorLennart Poettering <lennart@amutable.com>
Mon, 13 Apr 2026 20:50:26 +0000 (22:50 +0200)
committerLennart Poettering <lennart@amutable.com>
Fri, 17 Apr 2026 16:52:35 +0000 (18:52 +0200)
If unprivileged_mode is false then verify_esp() will treat access errors
like any other and log about them. Here we set it to false, hence
there's no point to log a 2nd time.

src/bootctl/bootctl-cleanup.c

index 66e000560584334a783cb94cdf2182ca1873c876..15c8d08f20d34538eb8013824a84d8d238b949c3 100644 (file)
@@ -98,8 +98,6 @@ int verb_cleanup(int argc, char *argv[], uintptr_t _data, void *userdata) {
                         /* ret_psize= */ NULL,
                         /* ret_uuid= */ NULL,
                         &esp_devid);
-        if (r == -EACCES) /* We really need the ESP path for this call, hence also log about access errors */
-                return log_error_errno(r, "Failed to determine ESP location: %m");
         if (r < 0)
                 return r;
 
@@ -107,8 +105,6 @@ int verb_cleanup(int argc, char *argv[], uintptr_t _data, void *userdata) {
                         /* unprivileged_mode= */ false,
                         /* ret_uuid= */ NULL,
                         &xbootldr_devid);
-        if (r == -EACCES)
-                return log_error_errno(r, "Failed to determine XBOOTLDR partition: %m");
         if (r < 0)
                 return r;