From 299c64e316f026a9441775f21dfdb69e8125d58e Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Wed, 7 Dec 2022 10:50:35 -0700 Subject: [PATCH] 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 --- stand/kboot/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stand/kboot/main.c b/stand/kboot/main.c index 7826e06c653f..b8cd27bf3cf9 100644 --- a/stand/kboot/main.c +++ b/stand/kboot/main.c @@ -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];