diff options
author | phk <phk@FreeBSD.org> | 2002-03-08 10:33:11 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2002-03-08 10:33:11 +0000 |
commit | 0a13c0f2f6eea459daeae0e31aab75ee86f1874e (patch) | |
tree | 857bf4b7207179e792209215c70daf9b5e686691 /sys/kern/vfs_mount.c | |
parent | 6b229a1455c9cd14021328f87387a7c0532f3518 (diff) | |
download | FreeBSD-src-0a13c0f2f6eea459daeae0e31aab75ee86f1874e.zip FreeBSD-src-0a13c0f2f6eea459daeae0e31aab75ee86f1874e.tar.gz |
Move the mount of the root filesystem to happen in the init process before
the exec if /sbin/init.
This allows the scheduler to get started and kthreads a chance to run
before we start filesystem operations.
Diffstat (limited to 'sys/kern/vfs_mount.c')
-rw-r--r-- | sys/kern/vfs_mount.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/kern/vfs_mount.c b/sys/kern/vfs_mount.c index 27c2b54..0f1ab00 100644 --- a/sys/kern/vfs_mount.c +++ b/sys/kern/vfs_mount.c @@ -87,7 +87,6 @@ static char *cdrom_rootdevnames[] = { NULL }; -static void vfs_mountroot(void *junk); static int vfs_mountroot_try(char *mountfrom); static int vfs_mountroot_ask(void); static void gets(char *cp); @@ -96,13 +95,11 @@ static void gets(char *cp); char *rootdevnames[2] = {NULL, NULL}; static int setrootbyname(char *name); -SYSINIT(mountroot, SI_SUB_MOUNT_ROOT, SI_ORDER_SECOND, vfs_mountroot, NULL); - /* * Find and mount the root filesystem */ -static void -vfs_mountroot(void *junk) +void +vfs_mountroot(void *foo __unused) { int i; |