From 4f4d4670fefbbd2f5b79e15acfc575885fbb5237 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 6 Nov 2019 13:20:42 +0100 Subject: [PATCH] Kernel: Don't instantiate and throw away ProcFS + DevPtsFS on boot Oops, we were creating these and then throwing them away. They will get instantiated a bit later, when we bring up the mounts in /etc/fstab from userspace. --- Kernel/init.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Kernel/init.cpp b/Kernel/init.cpp index 7c0c66c9e0..906f996435 100644 --- a/Kernel/init.cpp +++ b/Kernel/init.cpp @@ -303,12 +303,6 @@ extern "C" [[noreturn]] void init() auto e1000 = E1000NetworkAdapter::autodetect(); auto rtl8139 = RTL8139NetworkAdapter::autodetect(); - NonnullRefPtr new_procfs = ProcFS::create(); - new_procfs->initialize(); - - auto devptsfs = DevPtsFS::create(); - devptsfs->initialize(); - Process::initialize(); Thread::initialize(); Process::create_kernel_process("init_stage2", init_stage2);