boot: print list of block devices on mount fail

This commit is contained in:
Michael Shaw 2023-11-01 19:55:44 -04:00
commit 36c6f7b92c
4 changed files with 17 additions and 2 deletions

View file

@ -151,10 +151,14 @@ void kmain()
ahci_init();
char *root_path = kcmdline_get_symbol("root");
if (!root_path)
if (!root_path) {
kprintf(LOG_ERROR "No root= parameter specified\n");
else
kerror_print_blkdevs();
panic();
} else {
vfs_init(root_path);
}
_pic_init();
apic_init();