Page MenuHomeFreeBSD

D38010.id114978.diff
No OneTemporary

D38010.id114978.diff

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

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)

Event Timeline