diff options
author | phk <phk@FreeBSD.org> | 2002-10-24 19:26:08 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2002-10-24 19:26:08 +0000 |
commit | 2419eff62cc8498b0b2acc49be3ec0580b002beb (patch) | |
tree | 2338f9a4bcbc068e3753bae6f709bb2b82455912 /sys/kern | |
parent | 75576547f2e9fc076b7bda821471e11336056e2d (diff) | |
download | FreeBSD-src-2419eff62cc8498b0b2acc49be3ec0580b002beb.zip FreeBSD-src-2419eff62cc8498b0b2acc49be3ec0580b002beb.tar.gz |
Make sure GEOM has stopped rattling the disks before we try to mount
the root filesystem, this may be implicated in the PC98 issue.
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/vfs_mount.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/kern/vfs_mount.c b/sys/kern/vfs_mount.c index d623508..5166ab4 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 */ |