summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/vfs_mount.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/kern/vfs_mount.c b/sys/kern/vfs_mount.c
index d6235086c51f..5166ab4c518c 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 */