Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Aug 2000 10:52:01 +0200
From:      Sheldon Hearn <sheldonh@uunet.co.za>
To:        Jos Backus <josb@corp.webtv.net>
Cc:        current@freebsd.org
Subject:   Re: devfs, moused and rc.devfs position in rc 
Message-ID:  <7241.967193521@axl.fw.uunet.co.za>
In-Reply-To: Your message of "Thu, 24 Aug 2000 10:29:03 MST." <20000824102903.A2492@traitor.artemis.com> 

next in thread | previous in thread | raw e-mail | index | archive | help


On Thu, 24 Aug 2000 10:29:03 MST, Jos Backus wrote:

> In /etc/rc, rc.i386 is invoked before rc.devfs. This causes moused to fail to
> start for those people who use a link from /dev/<mousedev> to /dev/mouse.  The
> fix seems to be to switch the order of invocation:

Your problem raises another interesting problem.  Takea look at the
bottom of rc.diskless2, where /dev is mounted in mfs.  That operation
needs to be conditionalized on the presence of DEFVS.

What we really need is for someone who runs a diskless environment to
try placing the call to rc.devfs immediately before the call to
rc.diskless1 and to apply something like the following patch to
rc.diskless2:

Index: rc.diskless2
===================================================================
RCS file: /home/ncvs/src/etc/rc.diskless2,v
retrieving revision 1.6
diff -u -d -r1.6 rc.diskless2
--- rc.diskless2	2000/04/27 08:43:48	1.6
+++ rc.diskless2	2000/08/25 08:51:20
@@ -34,6 +34,8 @@
 fi
 
 # extract a list of device entries, then copy them to a writable partition
-(cd /; find -x dev | cpio -o -H newc) > /tmp/dev.tmp
-mount_mfs -s 4096 -i 512 -T qp120at dummy /dev
-(cd /; cpio -i -H newc -d < /tmp/dev.tmp)
+if ! mount | grep -q 'devfs on /dev'; then
+	(cd /; find -x dev | cpio -o -H newc) > /tmp/dev.tmp
+	mount_mfs -s 4096 -i 512 -T qp120at dummy /dev
+	(cd /; cpio -i -H newc -d < /tmp/dev.tmp)
+fi

Feedback from such a person would be most useful, I think.

Ciao,
Sheldon.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7241.967193521>