summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-11-17 18:58:25 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-11-17 18:58:25 +0100
commitb2df670cf594e331a1212b3249433a9231b98523 (patch)
treeec444988bc5ceaa8b09aa45d8179301641b0404e
parente34ed04d1ee26e0b4e03d6c6b79b3ff195f9458c (diff)
downloadserenity-b2df670cf594e331a1212b3249433a9231b98523.zip
Kernel: Just hang if VFS::mount_root() fails
-rw-r--r--Kernel/init.cpp5
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();