DevPtsFS: Do not assume there is one of it

Unfortunately, that also means it can no longer inherit from SynthFS.
This commit is contained in:
Sergey Bugaev
2019-08-16 18:46:18 +03:00
committed by Andreas Kling
parent 37cc80fb96
commit 66a0a12435
5 changed files with 188 additions and 45 deletions

View File

@@ -122,7 +122,10 @@ VFS* vfs;
auto procfs = ProcFS::create();
procfs->initialize();
vfs->mount(procfs, "/proc");
vfs->mount(DevPtsFS::the(), "/dev/pts");
auto devptsfs = DevPtsFS::create();
devptsfs->initialize();
vfs->mount(devptsfs, "/dev/pts");
auto tmpfs = TmpFS::create();
if (!tmpfs->initialize())