Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F157451478
D23390.id67384.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
894 B
Referenced Files
None
Subscribers
None
D23390.id67384.diff
View Options
Index: stand/efi/loader/main.c
===================================================================
--- stand/efi/loader/main.c
+++ stand/efi/loader/main.c
@@ -180,8 +180,17 @@
set_currdev(const char *devname)
{
- env_setenv("currdev", EV_VOLATILE, devname, efi_setcurrdev, env_nounset);
- env_setenv("loaddev", EV_VOLATILE, devname, env_noset, env_nounset);
+ /*
+ * Don't execute hooks here; we may need to try setting these more than
+ * once here if we're probing for the ZFS pool we're supposed to boot.
+ * The currdev hook is intended to just validate user input anyways,
+ * while the loaddev hook makes it immutable once we've determined what
+ * the proper currdev is.
+ */
+ env_setenv("currdev", EV_VOLATILE | EV_NOHOOK, devname, efi_setcurrdev,
+ env_nounset);
+ env_setenv("loaddev", EV_VOLATILE | EV_NOHOOK, devname, env_noset,
+ env_nounset);
}
static void
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, May 22, 2:45 PM (46 m, 30 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33422868
Default Alt Text
D23390.id67384.diff (894 B)
Attached To
Mode
D23390: efiloader: don't execute hooks when setting currdev/loaddev
Attached
Detach File
Event Timeline
Log In to Comment