From 45945cd71c227dfdaca43ab5fae9c4a9c498c5bc Mon Sep 17 00:00:00 2001 From: David Greenman Date: Fri, 23 Sep 1994 18:02:22 +0000 Subject: [PATCH] root must be remounted read/write fairly early in the startup procedure both for NFS diskless and for VFS LKMs. --- etc/rc | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/etc/rc b/etc/rc index 365c8e840f7a..1731d8923d2f 100644 --- a/etc/rc +++ b/etc/rc @@ -1,5 +1,5 @@ #!/bin/sh -# $Id: rc,v 1.2 1994/09/19 23:13:37 ache Exp $ +# $Id: rc,v 1.30 1994/09/23 07:16:16 rgrimes Exp $ # From: @(#)rc 5.27 (Berkeley) 6/5/91 # System startup script run by init on autoboot @@ -58,11 +58,9 @@ trap "echo 'Reboot interrupted'; exit 1" 3 swapon -a -# Check for diskless boot, and remount the root RW. -a=`mount` -if [ 0 != `expr "$a" : '^[^/]*:/.* on /'` ] ; then - mount -u -o rw / -fi +# root must be read/write both for NFS diskless and for VFS LKMs before +# proceeding any further. +mount -u -o rw / umount -a >/dev/null 2>&1 mount -a -t nonfs