summaryrefslogtreecommitdiff
path: root/sys/kern/vfs_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/vfs_init.c')
-rw-r--r--sys/kern/vfs_init.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/vfs_init.c b/sys/kern/vfs_init.c
index 0d8d194..9039e6a 100644
--- a/sys/kern/vfs_init.c
+++ b/sys/kern/vfs_init.c
@@ -43,7 +43,7 @@ __KERNEL_META("$Hyra$: vfs.c, Ian Marco Moffett, "
#define INITRAMFS_ID 0
static struct fs_info filesystems[] = {
- [INITRAMFS_ID] = { "initramfs", &g_initramfs_ops }
+ [INITRAMFS_ID] = { "initramfs", &g_initramfs_ops, NULL},
};
struct vnode *g_root_vnode = NULL;
@@ -74,6 +74,7 @@ vfs_init(void)
vfsops = info->vfsops;
__assert(vfsops->init != NULL);
+ __assert(vfs_mount(info->name, 0, info) == 0);
vfsops->init(info);
}