From 7c0c26b4c40177cba68cd8eb85a2bc88744cdd0c Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Thu, 24 Oct 2002 19:26:08 +0000 Subject: [PATCH] Make sure GEOM has stopped rattling the disks before we try to mount the root filesystem, this may be implicated in the PC98 issue. --- sys/kern/vfs_mount.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/kern/vfs_mount.c b/sys/kern/vfs_mount.c index d6235086c51..5166ab4c518 100644 --- a/sys/kern/vfs_mount.c +++ b/sys/kern/vfs_mount.c @@ -1465,6 +1465,8 @@ vfs_mountroot(void) panic("Root mount failed, startup aborted."); } +void g_waitidle(void); + /* * Mount (mountfrom) as the root filesystem. */ @@ -1483,6 +1485,8 @@ vfs_mountroot_try(char *mountfrom) mp = NULL; error = EINVAL; + g_waitidle(); + if (mountfrom == NULL) return(error); /* don't complain */