diff options
author | Ian Moffett <ian@osmora.org> | 2024-03-01 13:26:53 -0500 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-03-01 13:26:53 -0500 |
commit | 22bdfe6ed296a8a9d95e9d88a856bad8f1c870b7 (patch) | |
tree | 0cd366ee14170a010e26d58b4cf54c58ea9ffbbe /sys/kern/vfs_init.c | |
parent | a31024156aebcc2f58d849970efcce50ede58c1c (diff) |
kernel: vfs: Simplify mounting logic
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/kern/vfs_init.c')
-rw-r--r-- | sys/kern/vfs_init.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/kern/vfs_init.c b/sys/kern/vfs_init.c index bcda0dd..8decace 100644 --- a/sys/kern/vfs_init.c +++ b/sys/kern/vfs_init.c @@ -61,7 +61,7 @@ vfs_init(void) struct fs_info *info; struct vfsops *vfsops; - vfs_init_cache(); + vfs_mount_init(); for (int i = 0; i < __ARRAY_COUNT(filesystems); ++i) { info = &filesystems[i]; @@ -69,10 +69,5 @@ vfs_init(void) __assert(vfsops->init != NULL); vfsops->init(info); - - if (strcmp(info->name, "initramfs") == 0) { - /* Initramfs must be mounted */ - vfs_mount(&info->mp_root, "/ramdisk", MNT_RDONLY); - } } } |