bootctl: make list command take --variables= option

This commit is contained in:
Yu Watanabe
2026-02-13 16:11:33 +09:00
parent 865f0fe28f
commit 340c82c454
+2
View File
@@ -614,6 +614,8 @@ int verb_list(int argc, char *argv[], void *userdata) {
* Here we're interested in the latter but not the former, hence request the mode, and log about
* EACCES. */
(void) touch_variables();
r = acquire_esp(/* unprivileged_mode= */ -1, /* graceful= */ false, NULL, NULL, NULL, 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");