diff --git a/Kernel/FileSystem/VirtualFileSystem.cpp b/Kernel/FileSystem/VirtualFileSystem.cpp index df7f03ca6e6..3d1f11bcc56 100644 --- a/Kernel/FileSystem/VirtualFileSystem.cpp +++ b/Kernel/FileSystem/VirtualFileSystem.cpp @@ -157,6 +157,12 @@ ErrorOr VirtualFileSystem::mount_root(FileSystem& fs) auto pseudo_path = TRY(static_cast(fs).file_description().pseudo_path()); dmesgln("VirtualFileSystem: mounted root({}) from {} ({})", fs.fsid(), fs.class_name(), pseudo_path); + if (fs.is_file_backed()) { + m_file_backed_file_systems_list.with([&](auto& list) { + list.append(static_cast(fs)); + }); + } + // Note: Actually add a mount for the filesystem and increment the filesystem mounted count m_mounts.with([&](auto& mounts) { new_mount->guest_fs().mounted_count({}).with([&](auto& mounted_count) {