Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102609246
D38010.id114978.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
982 B
Referenced Files
None
Subscribers
None
D38010.id114978.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
@@ -172,6 +172,9 @@
heapbase = host_getmem(heapsize);
setheap(heapbase, heapbase + heapsize);
+ /* Parse the command line args -- ignoring for now the console selection */
+ parse_args(argc, argv);
+
/*
* Set up console.
*/
@@ -180,8 +183,20 @@
/* Initialize all the devices */
devinit();
- /* Parse the command line args -- ignoring for now the console selection */
- parse_args(argc, argv);
+ bootdev = getenv("bootdev");
+ if (bootdev == NULL)
+ bootdev="zfs:";
+ hostfs_root = getenv("hostfs_root");
+ if (hostfs_root == NULL)
+ hostfs_root = "/";
+#if defined(LOADER_ZFS_SUPPORT)
+ if (strcmp(bootdev, "zfs:") == 0) {
+ /*
+ * Pseudo device that says go find the right ZFS pool.
+ */
+ printf("WARNING: bare 'zfs:' for boot device not yet implemented\n");
+ }
+#endif
printf("Boot device: %s with hostfs_root %s\n", bootdev, hostfs_root);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 15, 6:10 PM (16 h, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14646389
Default Alt Text
D38010.id114978.diff (982 B)
Attached To
Mode
D38010: kboot: Fetch hostfs_root and bootdev from the environment
Attached
Detach File
Event Timeline
Log In to Comment