1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 23:07:35 +00:00

Kernel: Introduce the DevFS

The DevFS along with DevPtsFS give a complete solution for populating
device nodes in /dev. The main purpose of DevFS is to eliminate the
need of device nodes generation when building the system.

Later on, DevFS will assist with exposing disk partition nodes.
This commit is contained in:
Liav A 2020-12-25 19:26:38 +02:00 committed by Andreas Kling
parent 18e77aa285
commit 247517cd4a
7 changed files with 774 additions and 55 deletions

View file

@ -1,8 +1,7 @@
# Root file system. This is a fake entry which gets ignored by `mount -a`;
# the actual logic for mounting root is in the kernel.
/dev/hda / ext2 nodev,nosuid,ro
# Remount /bin, /dev, /root, and /home while adding the appropriate permissions.
/dev /dev bind bind,nosuid,ro
# Remount /bin, /root, and /home while adding the appropriate permissions.
/bin /bin bind bind,nodev,ro
/etc /etc bind bind,nodev,nosuid
/home /home bind bind,nodev,nosuid
@ -10,5 +9,4 @@
/var /var bind bind,nodev,nosuid
none /proc proc nosuid
none /dev/pts devpts noexec,nosuid,ro
none /tmp tmp nodev,nosuid