Remove hack which mounts the root filesystem R/W if the device is

named 'md<something>'.  While convenient, it does not belong here,
if anywhere at all.
This commit is contained in:
Poul-Henning Kamp 2004-11-10 07:36:09 +00:00
parent c5b846fe8e
commit c2597f2ddb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=137509

View File

@ -1337,13 +1337,6 @@ vfs_mountroot_try(const char *mountfrom)
printf("setrootbyname failed\n");
}
/* If the root device is a type "memory disk", mount RW */
if (rootdev != NULL && rootdev->si_devsw != NULL) {
devname = devtoname(rootdev);
if (devname[0] == 'm' && devname[1] == 'd')
mp->mnt_flag &= ~MNT_RDONLY;
}
error = VFS_OMOUNT(mp, NULL, NULL, curthread);
done: