Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F115844943
D38012.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
735 B
Referenced Files
None
Subscribers
None
D38012.diff
View Options
diff --git a/stand/kboot/main.c b/stand/kboot/main.c
--- a/stand/kboot/main.c
+++ b/stand/kboot/main.c
@@ -198,15 +198,22 @@
* on active BEs, etc
*/
hostdisk_zfs_find_default();
- }
+ } else
#endif
+ {
+ /*
+ * Otherwise, honor what's on the command line. If we've been
+ * given a specific ZFS partition, then we'll honor it w/o BE
+ * processing that would otherwise pick a different snapshot to
+ * boot than the default one in the pool.
+ */
+ set_currdev(bootdev);
+ }
printf("Boot device: %s with hostfs_root %s\n", bootdev, hostfs_root);
printf("\n%s", bootprog_info);
- setenv("currdev", bootdev, 1);
- setenv("loaddev", bootdev, 1);
setenv("LINES", "24", 1);
setenv("usefdt", "1", 1);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 30, 11:24 AM (18 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17857064
Default Alt Text
D38012.diff (735 B)
Attached To
Mode
D38012: kboot: Use standard set_currdev
Attached
Detach File
Event Timeline
Log In to Comment