mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 08:54:58 +00:00
SystemServer: Mount DevLoopFS on /dev/loop
Let's use the new DevLoopFS filesystem on /dev/loop to see the loop devices immediately as they're created or deleted.
This commit is contained in:
parent
0d2e4a7e67
commit
d14a0a454a
1 changed files with 2 additions and 0 deletions
|
@ -125,6 +125,8 @@ static ErrorOr<void> prepare_bare_minimum_devtmpfs_directory_structure()
|
|||
TRY(Core::System::mkdir("/dev/gpu"sv, 0755));
|
||||
TRY(Core::System::mkdir("/dev/pts"sv, 0755));
|
||||
TRY(Core::System::mount(-1, "/dev/pts"sv, "devpts"sv, 0));
|
||||
TRY(Core::System::mkdir("/dev/loop"sv, 0755));
|
||||
TRY(Core::System::mount(-1, "/dev/loop"sv, "devloop"sv, 0));
|
||||
|
||||
mode_t old_mask = umask(0);
|
||||
TRY(Core::System::create_char_device("/dev/devctl"sv, 0660, 2, 10));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue