From 888248d42e6550917e46799b8f84c7fcf070e97e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Mon, 24 Oct 2005 22:12:41 +0000 Subject: [PATCH] The kernel now panics if it didn't found any possible boot partitions. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14506 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/fs/vfs_boot.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/system/kernel/fs/vfs_boot.cpp b/src/system/kernel/fs/vfs_boot.cpp index ec0bed99ee..8bfe6c16fb 100644 --- a/src/system/kernel/fs/vfs_boot.cpp +++ b/src/system/kernel/fs/vfs_boot.cpp @@ -235,8 +235,10 @@ vfs_mount_boot_file_system(kernel_args *args) { PartitionStack partitions; status_t status = get_boot_partitions(args, partitions); - if (status < B_OK) + if (status < B_OK) { + panic("Did not get any boot partitions!"); return status; + } KPartition *bootPartition; while (partitions.Pop(&bootPartition)) {