Activate support for efibootmgr(8) -b --bootnum parameter

Sponsored by:	Netflix
Differential Revision:	https://reviews.freebsd.org/D18647
This commit is contained in:
Rebecca Cran 2018-12-24 15:38:36 +00:00
parent 261e62db4c
commit a2581e8021
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=342396

View file

@ -96,6 +96,7 @@ typedef struct _bmgr_opts {
static struct option lopts[] = {
{"activate", required_argument, NULL, 'a'},
{"bootnext", required_argument, NULL, 'n'}, /* set bootnext */
{"bootnum", required_argument, NULL, 'b'},
{"bootorder", required_argument, NULL, 'o'}, /* set order */
{"copy", required_argument, NULL, 'C'}, /* Copy boot method */
{"create", no_argument, NULL, 'c'},
@ -191,7 +192,7 @@ parse_args(int argc, char *argv[])
{
int ch;
while ((ch = getopt_long(argc, argv, "A:a:B:C:cDe:hk:L:l:Nn:Oo:Tt:v",
while ((ch = getopt_long(argc, argv, "A:a:B:b:C:cDe:hk:L:l:Nn:Oo:Tt:v",
lopts, NULL)) != -1) {
switch (ch) {
case 'A':