From: Lennart Poettering Date: Mon, 13 Apr 2026 20:50:26 +0000 (+0200) Subject: bootctl: drop redundant log message X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f85415498cf3800bef26b1092096e658a8211e97;p=thirdparty%2Fsystemd.git bootctl: drop redundant log message 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. --- diff --git a/src/bootctl/bootctl-cleanup.c b/src/bootctl/bootctl-cleanup.c index 66e00056058..15c8d08f20d 100644 --- a/src/bootctl/bootctl-cleanup.c +++ b/src/bootctl/bootctl-cleanup.c @@ -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;