Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F161661686
D57805.id180502.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
D57805.id180502.diff
View Options
diff --git a/stand/efi/loader/main.c b/stand/efi/loader/main.c
--- a/stand/efi/loader/main.c
+++ b/stand/efi/loader/main.c
@@ -681,39 +681,21 @@
#ifdef EFI_ZFS_BOOT
/*
- * Sixth Choice: Probe the boot disk for ZFS and then probe the non-boot
- * disk if we have a relaxed boot poluicy.
+ * Sixth Choice: With a relaxed policy, try ZFS pools on non-boot
+ * devices after the boot device has been fully exhausted.
*/
- {
+ if (boot_policy == RELAXED) {
zfsinfo_list_t *zfsinfo = efizfs_get_zfsinfo_list();
zfsinfo_t *zi;
- /*
- * Try ZFS pool(s) on the boot device not reachable via
- * the partition walk above.
- */
STAILQ_FOREACH(zi, zfsinfo, zi_link) {
- if (zi->zi_handle != boot_img->DeviceHandle)
+ if (zi->zi_handle == boot_img->DeviceHandle)
continue;
- printf("Trying ZFS pool 0x%jx\n", zi->zi_pool_guid);
+ printf("Trying ZFS pool 0x%jx\n",
+ zi->zi_pool_guid);
if (probe_zfs_currdev(zi->zi_pool_guid))
return (0);
}
-
- /*
- * With a relaxed policy, try pools on other devices only
- * after the boot device has no bootable root.
- */
- if (boot_policy == RELAXED) {
- STAILQ_FOREACH(zi, zfsinfo, zi_link) {
- if (zi->zi_handle == boot_img->DeviceHandle)
- continue;
- printf("Trying ZFS pool 0x%jx\n",
- zi->zi_pool_guid);
- if (probe_zfs_currdev(zi->zi_pool_guid))
- return (0);
- }
- }
}
#endif /* EFI_ZFS_BOOT */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jul 6, 5:35 PM (3 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34304411
Default Alt Text
D57805.id180502.diff (1 KB)
Attached To
Mode
D57805: loader.efi: Trim ZFS searching for other booting options
Attached
Detach File
Event Timeline
Log In to Comment