From owner-freebsd-current Fri Aug 25 1:52:37 2000 Delivered-To: freebsd-current@freebsd.org Received: from lists01.iafrica.com (lists01.iafrica.com [196.7.0.141]) by hub.freebsd.org (Postfix) with ESMTP id D2B4537B422 for ; Fri, 25 Aug 2000 01:52:31 -0700 (PDT) Received: from nwl.fw.uunet.co.za ([196.31.2.162]) by lists01.iafrica.com with esmtp (Exim 3.12 #2) id 13SFDw-0004W5-00; Fri, 25 Aug 2000 10:52:28 +0200 Received: (from nobody@localhost) by nwl.fw.uunet.co.za (8.8.8/8.6.9) id KAA27111; Fri, 25 Aug 2000 10:52:25 +0200 (SAST) Received: by nwl.fw.uunet.co.za via recvmail id 27084; Fri Aug 25 10:52:01 2000 Received: from sheldonh (helo=axl.fw.uunet.co.za) by axl.fw.uunet.co.za with local-esmtp (Exim 3.16 #1) id 13SFDV-0001so-00; Fri, 25 Aug 2000 10:52:01 +0200 To: Jos Backus Cc: current@freebsd.org Subject: Re: devfs, moused and rc.devfs position in rc In-reply-to: Your message of "Thu, 24 Aug 2000 10:29:03 MST." <20000824102903.A2492@traitor.artemis.com> Date: Fri, 25 Aug 2000 10:52:01 +0200 Message-ID: <7241.967193521@axl.fw.uunet.co.za> From: Sheldon Hearn Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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/ 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