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
2
fs/vfs.c
2
fs/vfs.c
|
|
@ -270,6 +270,7 @@ void vfs_init(const char *rootdev_name)
|
|||
struct block_device *rootdev = block_get_device(rootdev_name);
|
||||
if (!rootdev) {
|
||||
kprintf(LOG_ERROR "Failed to find root device %s\n", rootdev_name);
|
||||
kerror_print_blkdevs();
|
||||
panic();
|
||||
}
|
||||
|
||||
|
|
@ -282,6 +283,7 @@ void vfs_init(const char *rootdev_name)
|
|||
struct fs *fs = ext2_init_fs(rootdev);
|
||||
if (!fs) {
|
||||
kprintf(LOG_ERROR "Failed to mount root device %s\n", rootdev_name);
|
||||
kerror_print_blkdevs();
|
||||
panic();
|
||||
} else {
|
||||
#ifdef KDEBUG
|
||||
|
|
|
|||
Loading…
Reference in a new issue