summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_mount.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/vfs_mount.c')
-rw-r--r--sys/kern/vfs_mount.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/vfs_mount.c b/sys/kern/vfs_mount.c
index a494401..0f829a9 100644
--- a/sys/kern/vfs_mount.c
+++ b/sys/kern/vfs_mount.c
@@ -1730,11 +1730,10 @@ vfs_mountroot_try(const char *mountfrom)
strcpy(path, ROOTNAME);
error = kernel_vmount(
- MNT_ROOTFS,
+ MNT_RDONLY | MNT_ROOTFS,
"fstype", vfsname,
"fspath", "/",
"from", path,
- "ro", NULL,
NULL);
if (error == 0) {
/*
OpenPOWER on IntegriCloud