summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Kernel/KSyms.cpp2
-rwxr-xr-xKernel/build-root-filesystem.sh3
2 files changed, 3 insertions, 2 deletions
diff --git a/Kernel/KSyms.cpp b/Kernel/KSyms.cpp
index 55464d3274..2ab5f84e70 100644
--- a/Kernel/KSyms.cpp
+++ b/Kernel/KSyms.cpp
@@ -151,7 +151,7 @@ void dump_backtrace()
void load_ksyms()
{
- auto result = VFS::the().open("/kernel.map", 0, 0, VFS::the().root_custody());
+ auto result = VFS::the().open("/res/kernel.map", 0, 0, VFS::the().root_custody());
ASSERT(!result.is_error());
auto description = result.value();
auto buffer = description->read_entire_file();
diff --git a/Kernel/build-root-filesystem.sh b/Kernel/build-root-filesystem.sh
index 8e713e7a74..b5dceb740f 100755
--- a/Kernel/build-root-filesystem.sh
+++ b/Kernel/build-root-filesystem.sh
@@ -63,7 +63,8 @@ echo "done"
printf "installing base system... "
cp -R ../Base/* mnt/
cp -R ../Root/* mnt/
-cp kernel.map mnt/
+cp kernel.map mnt/res/
+chmod 400 mnt/res/kernel.map
echo "done"
printf "installing users... "