bootctl: make reboot-to-firmware command take --variables= option

This commit is contained in:
Yu Watanabe
2026-02-13 16:11:33 +09:00
parent 1fa1e88ead
commit 6cd57ebcef
+5
View 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"
@@ -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) {