bootctl: make reboot-to-firmware command take --variables= option
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user