diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-11-17 18:58:25 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-11-17 18:58:25 +0100 |
commit | b2df670cf594e331a1212b3249433a9231b98523 (patch) | |
tree | ec444988bc5ceaa8b09aa45d8179301641b0404e | |
parent | e34ed04d1ee26e0b4e03d6c6b79b3ff195f9458c (diff) | |
download | serenity-b2df670cf594e331a1212b3249433a9231b98523.zip |
Kernel: Just hang if VFS::mount_root() fails
-rw-r--r-- | Kernel/init.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Kernel/init.cpp b/Kernel/init.cpp index 9ec55e2e88..9ff276db50 100644 --- a/Kernel/init.cpp +++ b/Kernel/init.cpp @@ -135,7 +135,10 @@ VFS* vfs; hang(); } - vfs->mount_root(e2fs); + if (!vfs->mount_root(e2fs)) { + kprintf("VFS::mount_root failed\n"); + hang(); + } dbgprintf("Load ksyms\n"); load_ksyms(); |