diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 1999-11-26 20:08:44 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1999-11-26 20:08:44 +0000 |
commit | 71e4fff823e1f5d08467df93c62f445b7d88d142 (patch) | |
tree | 5ea3588f6376879ee2608c319d803b1f1b241cc5 /sys/kern/vfs_conf.c | |
parent | 7dfec6b427846273a0cb04fdbd87c8d5e121bcea (diff) | |
download | src-test2-71e4fff823e1f5d08467df93c62f445b7d88d142.tar.gz src-test2-71e4fff823e1f5d08467df93c62f445b7d88d142.zip |
Notes
Diffstat (limited to 'sys/kern/vfs_conf.c')
-rw-r--r-- | sys/kern/vfs_conf.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/kern/vfs_conf.c b/sys/kern/vfs_conf.c index 57d994c5cdf1..e63343cf78db 100644 --- a/sys/kern/vfs_conf.c +++ b/sys/kern/vfs_conf.c @@ -197,6 +197,10 @@ vfs_mountroot_try(char *mountfrom) if ((path[0] != 0) && setrootbyname(path)) printf("setrootbyname failed\n"); + /* If the root device is a type "memory disk", mount RW */ + if (devsw(rootdev) && (devsw(rootdev)->d_flags & D_MEMDISK)) + mp->mnt_flag &= ~MNT_RDONLY; + strcpy(mp->mnt_stat.f_mntfromname, path); error = VFS_MOUNT(mp, NULL, NULL, NULL, curproc); |