From: Yu Watanabe Date: Wed, 21 Jan 2026 10:40:54 +0000 (+0900) Subject: bootctl: make reboot-to-firmware command take --variables= option X-Git-Tag: v260-rc1~7^2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6cd57ebcef09aa967a310bac009a201f86a3caa1;p=thirdparty%2Fsystemd.git bootctl: make reboot-to-firmware command take --variables= option --- diff --git a/src/bootctl/bootctl-reboot-to-firmware.c b/src/bootctl/bootctl-reboot-to-firmware.c index 9b85f022327..be20a4a1322 100644 --- a/src/bootctl/bootctl-reboot-to-firmware.c +++ b/src/bootctl/bootctl-reboot-to-firmware.c @@ -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" @@ -14,6 +15,10 @@ 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) {