Re: devfs, moused and rc.devfs position in rc

2000-08-25 Thread Sheldon Hearn



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.diskless22000/04/27 08:43:48 1.6
+++ rc.diskless22000/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 [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



devfs, moused and rc.devfs position in rc

2000-08-24 Thread Jos Backus

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:

# Run rc.devfs if readable to customize devfs
#
if [ -r /etc/rc.devfs ]; then
sh /etc/rc.devfs
fi

# Configure implementation specific stuff
#
arch=`uname -m`
if [ -r /etc/rc.${arch} ]; then
. /etc/rc.${arch}
fi

Hth,
-- 
Jos Backus [EMAIL PROTECTED]
WebTV Networks, Inc., Mountain View, CA


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message