stand/kboot: Initialize all the devices

main() of the boot loader is expected to call devinit() early. We do
this at the same time we do it in the EFI loader (except we don't have a
buffer cache here, we don't need to initialize time and we don't have
special efi partition handles to enumerate). This is just after we probe
for the console.

Sponsored by:		Netflix
This commit is contained in:
Warner Losh 2022-12-07 10:50:35 -07:00
parent 288626083b
commit 299c64e316

View File

@ -105,6 +105,9 @@ main(int argc, const char **argv)
*/
cons_probe();
/* Initialize all the devices */
devinit();
/* Choose bootdev if provided */
if (argc > 1)
bootdev = argv[1];