From nobody@FreeBSD.org  Wed Sep 15 09:31:07 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 42E0616A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 15 Sep 2004 09:31:07 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 23F3F43D1F
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 15 Sep 2004 09:31:07 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.11/8.12.11) with ESMTP id i8F9V62a062202
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 15 Sep 2004 09:31:06 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.11/8.12.11/Submit) id i8F9V6Nn062201;
	Wed, 15 Sep 2004 09:31:06 GMT
	(envelope-from nobody)
Message-Id: <200409150931.i8F9V6Nn062201@www.freebsd.org>
Date: Wed, 15 Sep 2004 09:31:06 GMT
From: Michael Szklarski <dysoft@kco.com.pl>
To: freebsd-gnats-submit@FreeBSD.org
Subject: no /etc/rc.d/diskless script in FreeBSD 5.3 B 4
X-Send-Pr-Version: www-2.3

>Number:         71757
>Category:       conf
>Synopsis:       no /etc/rc.d/diskless script in FreeBSD 5.3 B 4
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    brooks
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 15 09:40:30 GMT 2004
>Closed-Date:    Wed Jan 11 16:45:18 GMT 2006
>Last-Modified:  Wed Jan 11 16:45:18 GMT 2006
>Originator:     Michael Szklarski
>Release:        5.3 Beta 4 , iso image: miniinst.
>Organization:
FILBICO
>Environment:
>Description:
On i386 platform, after minimal installation of version 5.3 B 4,
there is no /etc/rc.d/diskless script; the /etc/rc.d/initdiskless script
still exists. This causes problems during diskless startup.
>How-To-Repeat:

>Fix:
/etc/rc.d/diskless script from version 5.2.1 (RELEASE) works fine.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: brooks 
State-Changed-When: Wed Sep 15 14:55:03 GMT 2004 
State-Changed-Why:  
Please describe these problems.  /etc/rc.d/diskless was replaced by the  
hostname, resolve, tmp, and var scripts.  I have had no prior reports of  
behavior change. 


Responsible-Changed-From-To: freebsd-bugs->brooks 
Responsible-Changed-By: brooks 
Responsible-Changed-When: Wed Sep 15 14:55:03 GMT 2004 
Responsible-Changed-Why:  
I removed diskless. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=71757 

From: "\"Filbico\" Sp. z o.o." <filbico@filbico.pl>
To: <freebsd-gnats-submit@FreeBSD.org>, <dysoft@kco.com.pl>
Cc:  
Subject: Re: conf/71757: no /etc/rc.d/diskless script in FreeBSD 5.3 B 4
Date: Wed, 22 Sep 2004 11:00:34 +0200

 During diskless startup of FreeBSD 5.3 B 4 without the /etc/rc.d/diskless
 script, I get such messages
 at boot time: (I am unable to send You system log as a file):
 
 ....
 Starting devd.
 devd: bind: No such file or directory.
 Mounting NFS file systems: nfs: can't update /var/db/mounttab for
 192.168.2.1:/diskless
 nfs: can't update /var/db/mounttab for 192.168.2.1:/usr
 NFS access cache time = 2
 ELF ldconfig path: /lib /usr/lib /usr/lib/compat /usr/X11R6/lib
 /usr/local/lib
 ldconfig: mkstemp(/var/run/ld-elf.so.hints.AR9HvB):No such file or directory
 a.out ldconfig path: /usr/lib/aout /usr/lib/compat/aout /usr/X11R6/lib/aout
 ldconfig: /var/run/ld.so.hints.mUjcYCt4p8:No such file or directory
 Starting local daemons.
 
 .... [normal startup follows].
 
 These errors disappear when I copy into /etc/rc.d the diskless script.
 
 I have read all comments in initdiskless; I have appropriate entries in
 fstab,
 but no /conf directory.
 
                                                      sincerely Yours,
 M.Szklarski <dysoft@kco.com.pl>
 

From: Brooks Davis <brooks@one-eyed-alien.net>
To: "Filbico Sp. z o.o." <filbico@filbico.pl>
Cc: brooks@FreeBSD.org, freebsd-gnats-submit@FreeBSD.org
Subject: Re: conf/71757: no /etc/rc.d/diskless script in FreeBSD 5.3 B 4
Date: Wed, 22 Sep 2004 02:07:55 -0700

 --jRHKVT23PllUwdXP
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 Please try a stock system with varmfs=3D"YES" in your rc.conf.  Also
 please verify that your /etc/rc.d/var script is revision 1.32.
 
 -- Brooks
 
 --=20
 Any statement of the form "X is the one, true Y" is FALSE.
 PGP fingerprint 655D 519C 26A7 82E7 2529  9BF0 5D8E 8BE9 F238 1AD4
 
 --jRHKVT23PllUwdXP
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.2.1 (GNU/Linux)
 
 iD8DBQFBUUDqXY6L6fI4GtQRAgSkAJ4no14vuYcsgzv8S+Dg3Rh3SF4lsACfR0My
 SXuJbdoW1dkqjFe8T8QvtGY=
 =6KDo
 -----END PGP SIGNATURE-----
 
 --jRHKVT23PllUwdXP--

From: "\"Filbico\" Sp. z o.o." <filbico@filbico.pl>
To: <freebsd-gnats-submit@FreeBSD.org>, <dysoft@kco.com.pl>
Cc:  
Subject: Re: conf/71757: no /etc/rc.d/diskless script in FreeBSD 5.3 B 4
Date: Thu, 23 Sep 2004 09:52:29 +0200

 It worked out.
 
 As my fstab looks like this:
 
 192.168.1.1:/      /     nfs ro 0 0
 192.168.1.1:/usr /usr nfs ro 0 0
 md                    /var mfs -s=30m,rw 2 2
 md                    /tmp mfs -s=30m,rw 2 2
 
 your /etc/rc.d/var script was unable to populate /var due to lack of mounted
 /usr;
 I had to add another script ("usr") into /etc/rc.d:
 
 #!/bin/sh
 # PROVIDE: usr
 # REQUIRE: root
 # BEFORE: var
 
 . /etc/rc.subr
 
 name="usr"
 start_cmd="usr_start"
 stop_cmd="usr_stop"
 
 start_cmd()
 {
   case "${usrnfs}" in
   [Yy][Ee][Ss])
     mount /usr >/dev/null 2>&1
     ;;
   [Nn][Oo])
     ;;
   *)
     if [ ! -d /usr/lib ]; then
       mount /usr >/dev/null 2&1
     fi
     ;;
   esac
 }
 
 stop_cmd()
 {
   umount /usr >/dev/null 2>&1
 }
 
 load_rc_config "$name"
 run_rc_command "$1"
 
State-Changed-From-To: feedback->closed 
State-Changed-By: brooks 
State-Changed-When: Wed Jan 11 16:43:53 UTC 2006 
State-Changed-Why:  
I added code to /etc/rc.d/var to attempt to mount /usr before giving 
up a while and merged that to RELENG_5 today.  The fix could be better, 
but it should work for most setups and should resolve this problem. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=71757 
>Unformatted:
