@@ -1035,17 +1035,17 @@ static int help(int argc, char *argv[], void *userdata) {
10351035 printf ("%s [OPTIONS...] COMMAND ...\n"
10361036 "\n%sInstall/update/remove the systemd-boot EFI boot manager and list/select entries.%s\n"
10371037 "\nBoot Loader Commands:\n"
1038- " status Show status of installed systemd-boot and EFI variables\n"
1039- " install Install systemd-boot to the ESP and EFI variables\n"
1040- " update Update systemd-boot in the ESP and EFI variables\n"
1041- " remove Remove systemd-boot from the ESP and EFI variables\n"
1042- " is-installed Test whether systemd-boot is installed in the ESP\n"
1043- " random-seed Initialize random seed in ESP and EFI variables\n"
1044- " system- options Query or set system options string in EFI variable\n"
1038+ " status Show status of installed systemd-boot and EFI variables\n"
1039+ " install Install systemd-boot to the ESP and EFI variables\n"
1040+ " update Update systemd-boot in the ESP and EFI variables\n"
1041+ " remove Remove systemd-boot from the ESP and EFI variables\n"
1042+ " is-installed Test whether systemd-boot is installed in the ESP\n"
1043+ " random-seed Initialize random seed in ESP and EFI variables\n"
1044+ " systemd-efi- options Query or set system options string in EFI variable\n"
10451045 "\nBoot Loader Entries Commands:\n"
1046- " list List boot loader entries\n"
1047- " set-default ID Set default boot loader entry\n"
1048- " set-oneshot ID Set default boot loader entry, for next boot only\n"
1046+ " list List boot loader entries\n"
1047+ " set-default ID Set default boot loader entry\n"
1048+ " set-oneshot ID Set default boot loader entry, for next boot only\n"
10491049 "\nOptions:\n"
10501050 " -h --help Show this help\n"
10511051 " --version Print version\n"
@@ -1716,17 +1716,17 @@ static int verb_random_seed(int argc, char *argv[], void *userdata) {
17161716 return 0 ;
17171717}
17181718
1719- static int verb_system_options (int argc , char * argv [], void * userdata ) {
1719+ static int verb_systemd_efi_options (int argc , char * argv [], void * userdata ) {
17201720 int r ;
17211721
17221722 if (argc == 1 ) {
17231723 _cleanup_free_ char * line = NULL ;
17241724
1725- r = efi_systemd_options_variable (& line );
1725+ r = systemd_efi_options_variable (& line );
17261726 if (r < 0 )
17271727 return log_error_errno (r , "Failed to query SystemdOptions EFI variable: %m" );
17281728
1729- printf ( "SystemdOptions: %s\n" , line );
1729+ puts ( line );
17301730
17311731 } else {
17321732 r = efi_set_variable_string (EFI_VENDOR_SYSTEMD , "SystemdOptions" , argv [1 ]);
@@ -1739,17 +1739,17 @@ static int verb_system_options(int argc, char *argv[], void *userdata) {
17391739
17401740static int bootctl_main (int argc , char * argv []) {
17411741 static const Verb verbs [] = {
1742- { "help" , VERB_ANY , VERB_ANY , 0 , help },
1743- { "status" , VERB_ANY , 1 , VERB_DEFAULT , verb_status },
1744- { "install" , VERB_ANY , 1 , 0 , verb_install },
1745- { "update" , VERB_ANY , 1 , 0 , verb_install },
1746- { "remove" , VERB_ANY , 1 , 0 , verb_remove },
1747- { "is-installed" , VERB_ANY , 1 , 0 , verb_is_installed },
1748- { "list" , VERB_ANY , 1 , 0 , verb_list },
1749- { "set-default" , 2 , 2 , 0 , verb_set_default },
1750- { "set-oneshot" , 2 , 2 , 0 , verb_set_default },
1751- { "random-seed" , VERB_ANY , 1 , 0 , verb_random_seed },
1752- { "system- options" , VERB_ANY , 2 , 0 , verb_system_options },
1742+ { "help" , VERB_ANY , VERB_ANY , 0 , help },
1743+ { "status" , VERB_ANY , 1 , VERB_DEFAULT , verb_status },
1744+ { "install" , VERB_ANY , 1 , 0 , verb_install },
1745+ { "update" , VERB_ANY , 1 , 0 , verb_install },
1746+ { "remove" , VERB_ANY , 1 , 0 , verb_remove },
1747+ { "is-installed" , VERB_ANY , 1 , 0 , verb_is_installed },
1748+ { "list" , VERB_ANY , 1 , 0 , verb_list },
1749+ { "set-default" , 2 , 2 , 0 , verb_set_default },
1750+ { "set-oneshot" , 2 , 2 , 0 , verb_set_default },
1751+ { "random-seed" , VERB_ANY , 1 , 0 , verb_random_seed },
1752+ { "systemd-efi- options" , VERB_ANY , 2 , 0 , verb_systemd_efi_options },
17531753 {}
17541754 };
17551755
0 commit comments