Lines Matching refs:rootdev
138 struct i386_devdesc *rootdev;
153 * Allow the environment variable 'rootdev' to override the supplied device
154 * This should perhaps go to MI code and/or have $rootdev tested/set by
157 rootdevname = getenv("rootdev");
158 i386_getdev((void **)(&rootdev), rootdevname, NULL);
159 if (rootdev == NULL) { /* bad $rootdev/$currdev */
165 getrootmount(i386_fmtdev((void *)rootdev));
167 /* Do legacy rootdev guessing */
172 switch(rootdev->d_type) {
175 bi.bi_bios_dev = bc_unit2bios(rootdev->d_unit);
176 bootdevnr = bc_getdev(rootdev);
181 bi.bi_bios_dev = bd_unit2bios(rootdev->d_unit);
182 bootdevnr = bd_getdev(rootdev);
190 printf("WARNING - don't know how to boot from device type %d\n", rootdev->d_type);
193 printf("root device %s invalid\n", i386_fmtdev(rootdev));
196 free(rootdev);