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 */