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

index 9b85f022327548048a1ae0ec8382ab656753fe73..be20a4a13227a6f34585a3864dfa7b281a34bf7b 100644 (file)
@@ -6,6 +6,7 @@
 #include "sd-varlink.h"
 
 #include "bootctl-reboot-to-firmware.h"
+#include "bootctl-util.h"
 #include "efi-api.h"
 #include "errno-util.h"
 #include "log.h"
 int verb_reboot_to_firmware(int argc, char *argv[], void *userdata) {
         int r;
 
+        r = verify_touch_variables_allowed(argv[0]);
+        if (r < 0)
+                return r;
+
         if (argc < 2) {
                 r = efi_get_reboot_to_firmware();
                 if (r > 0) {