summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authordillon <dillon@FreeBSD.org>1999-11-29 18:51:04 +0000
committerdillon <dillon@FreeBSD.org>1999-11-29 18:51:04 +0000
commitbe8594a1e7170240592eb897aecc4f6090dec1be (patch)
tree9834e82c87caa267f89b20b7a7bf51b6f9fe2fb0 /sys/kern
parent6ea8f09ae9fc1e857fd70fa71319d8c2daacd48d (diff)
downloadFreeBSD-src-be8594a1e7170240592eb897aecc4f6090dec1be.zip
FreeBSD-src-be8594a1e7170240592eb897aecc4f6090dec1be.tar.gz
Make BOOTP work again.
Submitted by: Doug Ambrisko <ambrisko@whistle.com>
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/vfs_conf.c2
-rw-r--r--sys/kern/vfs_mount.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_conf.c b/sys/kern/vfs_conf.c
index afa6fa5..f3d39f0 100644
--- a/sys/kern/vfs_conf.c
+++ b/sys/kern/vfs_conf.c
@@ -200,7 +200,7 @@ vfs_mountroot_try(char *mountfrom)
printf("setrootbyname failed\n");
/* If the root device is a type "memory disk", mount RW */
- if (devsw(rootdev) && (devsw(rootdev)->d_flags & D_MEMDISK))
+ if (rootdev != NODEV && devsw(rootdev) && (devsw(rootdev)->d_flags & D_MEMDISK))
mp->mnt_flag &= ~MNT_RDONLY;
error = VFS_MOUNT(mp, NULL, NULL, NULL, curproc);
diff --git a/sys/kern/vfs_mount.c b/sys/kern/vfs_mount.c
index afa6fa5..f3d39f0 100644
--- a/sys/kern/vfs_mount.c
+++ b/sys/kern/vfs_mount.c
@@ -200,7 +200,7 @@ vfs_mountroot_try(char *mountfrom)
printf("setrootbyname failed\n");
/* If the root device is a type "memory disk", mount RW */
- if (devsw(rootdev) && (devsw(rootdev)->d_flags & D_MEMDISK))
+ if (rootdev != NODEV && devsw(rootdev) && (devsw(rootdev)->d_flags & D_MEMDISK))
mp->mnt_flag &= ~MNT_RDONLY;
error = VFS_MOUNT(mp, NULL, NULL, NULL, curproc);
OpenPOWER on IntegriCloud