]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
bootctl: make list command take --variables= option
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 21 Jan 2026 12:48:49 +0000 (21:48 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 13 Feb 2026 07:11:33 +0000 (16:11 +0900)
src/bootctl/bootctl-status.c

index e7bb877cf7b99dd72127b85919eeb878fbad74f9..2109e45d3484618c45f4fd58c04cf0aed2da921c 100644 (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");