boot: print list of block devices on mount fail
This commit is contained in:
parent
f880efe02d
commit
36c6f7b92c
4 changed files with 17 additions and 2 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue