Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F132153110
D40388.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
977 B
Referenced Files
None
Subscribers
None
D40388.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
@@ -250,9 +250,9 @@
static bool
probe_zfs_currdev(uint64_t guid)
{
+ char buf[VDEV_PAD_SIZE];
char *devname;
struct zfs_devdesc currdev;
- bool bootable;
currdev.dd.d_dev = &zfs_dev;
currdev.dd.d_unit = 0;
@@ -262,19 +262,14 @@
devname = devformat(&currdev.dd);
init_zfs_boot_options(devname);
- bootable = sanity_check_currdev();
- if (bootable) {
- char buf[VDEV_PAD_SIZE];
-
- if (zfs_get_bootonce(&currdev, OS_BOOTONCE, buf, sizeof(buf)) == 0) {
- printf("zfs bootonce: %s\n", buf);
- set_currdev(buf);
- setenv("zfs-bootonce", buf, 1);
- }
+ if (zfs_get_bootonce(&currdev, OS_BOOTONCE, buf, sizeof(buf)) == 0) {
+ printf("zfs bootonce: %s\n", buf);
+ set_currdev(buf);
+ setenv("zfs-bootonce", buf, 1);
(void)zfs_attach_nvstore(&currdev);
}
- return (bootable);
+ return (sanity_check_currdev());
}
#endif
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Oct 15, 6:11 AM (3 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
23745273
Default Alt Text
D40388.diff (977 B)
Attached To
Mode
D40388: stand/loader.efi: read zfs bootonce attribute before checking currdev
Attached
Detach File
Event Timeline
Log In to Comment