Lines Matching refs:rootdev
143 struct i386_devdesc *rootdev;
158 * Allow the environment variable 'rootdev' to override the supplied device
159 * This should perhaps go to MI code and/or have $rootdev tested/set by
162 rootdevname = getenv("rootdev");
163 i386_getdev((void **)(&rootdev), rootdevname, NULL);
164 if (rootdev == NULL) { /* bad $rootdev/$currdev */
170 getrootmount(i386_fmtdev((void *)rootdev));
172 /* Do legacy rootdev guessing */
177 switch(rootdev->dd.d_dev->dv_type) {
181 bi.bi_bios_dev = bd_unit2bios(rootdev);
182 bootdevnr = bd_getdev(rootdev);
191 rootdev->dd.d_dev->dv_type);
194 printf("root device %s invalid\n", i386_fmtdev(rootdev));
197 free(rootdev);