Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F152519090
D55094.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
D55094.diff
View Options
diff --git a/stand/efi/include/efizfs.h b/stand/efi/include/efizfs.h
--- a/stand/efi/include/efizfs.h
+++ b/stand/efi/include/efizfs.h
@@ -49,8 +49,6 @@
uint64_t zi_pool_guid;
} zfsinfo_t;
-extern uint64_t pool_guid;
-
void efi_zfs_probe(void);
EFI_HANDLE efizfs_get_handle_by_guid(uint64_t);
bool efizfs_get_guid_by_handle(EFI_HANDLE, uint64_t *);
diff --git a/stand/efi/libefi/efizfs.c b/stand/efi/libefi/efizfs.c
--- a/stand/efi/libefi/efizfs.c
+++ b/stand/efi/libefi/efizfs.c
@@ -40,8 +40,6 @@
#ifdef EFI_ZFS_BOOT
static zfsinfo_list_t zfsinfo;
-uint64_t pool_guid;
-
zfsinfo_list_t *
efizfs_get_zfsinfo_list(void)
{
@@ -111,13 +109,8 @@
STAILQ_FOREACH(pd, &hd->pd_part, pd_link) {
snprintf(devname, sizeof(devname), "%s%dp%d:",
efipart_hddev.dv_name, hd->pd_unit, pd->pd_unit);
- guid = 0;
- if (zfs_probe_dev(devname, &guid, false) == 0) {
+ if (zfs_probe_dev(devname, &guid, false) == 0)
insert_zfs(pd->pd_handle, guid);
- if (pd->pd_handle == boot_img->DeviceHandle)
- pool_guid = guid;
- }
-
}
}
}
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
@@ -588,6 +588,9 @@
}
#ifdef EFI_ZFS_BOOT
+ zfsinfo_list_t *zfsinfo = efizfs_get_zfsinfo_list();
+ zfsinfo_t *zi;
+
/*
* Did efi_zfs_probe() detect the boot pool? If so, use the zpool
* it found, if it's sane. ZFS is the only thing that looks for
@@ -595,9 +598,9 @@
* if we allow specifying which pool to boot from via UEFI variables
* rather than the bootenv stuff that FreeBSD uses today.
*/
- if (pool_guid != 0) {
- printf("Trying ZFS pool\n");
- if (probe_zfs_currdev(pool_guid))
+ STAILQ_FOREACH(zi, zfsinfo, zi_link) {
+ 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
Thu, Apr 16, 11:21 AM (44 m, 37 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31548781
Default Alt Text
D55094.diff (1 KB)
Attached To
Mode
D55094: loader.efi: try all ZFS pools found by efi_zfs_probe()
Attached
Detach File
Event Timeline
Log In to Comment