Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F105813557
D16977.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D16977.diff
View Options
Index: head/usr.sbin/efibootmgr/efibootmgr.c
===================================================================
--- head/usr.sbin/efibootmgr/efibootmgr.c
+++ head/usr.sbin/efibootmgr/efibootmgr.c
@@ -622,7 +622,7 @@
static int
make_boot_var(const char *label, const char *loader, const char *kernel, const char *env, bool dry_run,
- int bootnum)
+ int bootnum, bool activate)
{
struct entry *new_ent;
uint32_t load_attrs = 0;
@@ -665,6 +665,8 @@
/* don't make the new bootvar active by default, use the -a option later */
load_attrs = LOAD_OPTION_CATEGORY_BOOT;
+ if (activate)
+ load_attrs |= LOAD_OPTION_ACTIVE;
load_opt_buf = malloc(MAX_LOADOPT_LEN);
if (load_opt_buf == NULL)
err(1, "malloc");
@@ -915,7 +917,7 @@
*/
make_boot_var(opts.label ? opts.label : "",
opts.loader, opts.kernel, opts.env, opts.dry_run,
- opts.has_bootnum ? opts.bootnum : -1);
+ opts.has_bootnum ? opts.bootnum : -1, opts.set_active);
else if (opts.set_active || opts.set_inactive )
handle_activity(opts.bootnum, opts.set_active);
else if (opts.order != NULL)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 22, 2:05 AM (18 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15549768
Default Alt Text
D16977.diff (1 KB)
Attached To
Mode
D16977: Make -a (to make the entry active) apply to creation of a new boot variable.
Attached
Detach File
Event Timeline
Log In to Comment