From wera0003@fh-karlsruhe.de  Fri Feb 11 11:48:51 2005
Return-Path: <wera0003@fh-karlsruhe.de>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id C15E716A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 11 Feb 2005 11:48:51 +0000 (GMT)
Received: from rz06.fh-karlsruhe.de (rz06.FH-Karlsruhe.DE [193.196.64.6])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 9614243D49
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 11 Feb 2005 11:48:48 +0000 (GMT)
	(envelope-from wera0003@fh-karlsruhe.de)
Received: from rz-tp600e.fh-karlsruhe.de ([193.196.65.252] helo=localhost)
	by rz06.fh-karlsruhe.de with esmtp (Exim 4.44)
	id 1CzZHz-000Bdw-6h; Fri, 11 Feb 2005 12:48:47 +0100
Received: from wera0003 by localhost with local (Exim 4.44 (FreeBSD))
	id 1CzZHy-0000Bz-UN; Fri, 11 Feb 2005 12:48:46 +0100
Message-Id: <E1CzZHy-0000Bz-UN@localhost>
Date: Fri, 11 Feb 2005 12:48:46 +0100
From: Ralf Wenk <RZ-FreeBSD1004@fh-karlsruhe.de>
Sender: Ralf Wenk <wera0003@fh-karlsruhe.de>
Reply-To: Ralf Wenk <RZ-FreeBSD1004@fh-karlsruhe.de>
To: FreeBSD-gnats-submit@freebsd.org
Cc: Ralf Wenk <RZ-FreeBSD1004@fh-karlsruhe.de>
Subject: /etc/rc.d/var uses commands from /usr/bin and /usr/sbin when /usr not yet mounted (diskless boot)
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         77384
>Category:       conf
>Synopsis:       /etc/rc.d/var uses commands from /usr/bin and /usr/sbin when /usr not yet mounted (diskless boot)
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    brooks
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Feb 11 11:50:12 GMT 2005
>Closed-Date:    Mon Oct 31 20:06:58 GMT 2005
>Last-Modified:  Mon Oct 31 20:06:58 GMT 2005
>Originator:     Ralf Wenk
>Release:        FreeBSD 5.3-STABLE i386
>Organization:
FH Karlsruhe, University of Applied Sciences
>Environment:
System: FreeBSD RZ-Wenk1 5.3-STABLE FreeBSD 5.3-STABLE #2: Mon Feb 7 14:21:46 CET 2005 root@RZ-Wenk1:/usr/obj/usr/src/sys/fsc-t-diskless i386

>Description:
When booting diskless the NFS filesystem for /usr is not mounted at the
time /etc/rc.d/var is executed. So there is no /usr/sbin/mtree,
/usr/sbin/newsyslog, /usr/bin/touch and /usr/bin/awk availiable.
See also problem report 77340.

>How-To-Repeat:
Try a diskless boot and look at the output of the rc scripts.

>Fix:
As a workaround extend the root filesystem /usr directory with bin and sbin
directories and copy the neccesary files (mtree, touch, newsyslog and awk
(see pr 77340)) into them.
>Release-Note:
>Audit-Trail:

From: Bob Bishop <rb@gid.co.uk>
To: freebsd-gnats-submit@FreeBSD.org, RZ-FreeBSD1004@fh-karlsruhe.de
Cc:  
Subject: Re: conf/77384: /etc/rc.d/var uses commands from /usr/bin and
  /usr/sbin when /usr not yet mounted (diskless boot)
Date: Tue, 22 Feb 2005 13:33:26 +0000

 Aless messy workaround is to mount /usr in _populate_var() in rc.d/var.
 
State-Changed-From-To: open->patched 
State-Changed-By: brooks 
State-Changed-When: Wed Mar 2 02:19:56 GMT 2005 
State-Changed-Why:  
I've committed code to CURRENT today that removes the requirements for 
touch and newsyslog as well as code to try to mount /usr if mtree is 
needed. 


Responsible-Changed-From-To: freebsd-bugs->brooks 
Responsible-Changed-By: brooks 
Responsible-Changed-When: Wed Mar 2 02:19:56 GMT 2005 
Responsible-Changed-Why:  
I'm working on this stuff. 

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

From: Matteo Riondato <rionda@gufi.org>
To: bug-followup@freebsd.org
Cc: brooks@freebsd.org
Subject: Re: conf/77384 /etc/rc.d/var uses commands from /usr/bin and /usr/sbin when /usr not yet mounted (diskless boot)
Date: Mon, 4 Apr 2005 08:10:53 +0200

 --/WwmFnJnmDyWGHa4
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 Can this change be MFCed ?
 Thanks
 Best Regards
 --=20
 Rionda aka Matteo Riondato
 Disinformato per default
 G.U.F.I. Staff Member (http://www.gufi.org)
 FreeSBIE Developer (http://www.freesbie.org)
 
 --/WwmFnJnmDyWGHa4
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.0 (FreeBSD)
 
 iD8DBQFCUNps2Mp4pR7Fa+wRAlNYAKDFo2FafjJcElhwzq6puKNnjzWX7QCg1xof
 oLPM3qHBlzWJNRGO5w9wCrI=
 =h6kl
 -----END PGP SIGNATURE-----
 
 --/WwmFnJnmDyWGHa4--

From: Brooks Davis <brooks@one-eyed-alien.net>
To: Matteo Riondato <rionda@gufi.org>
Cc: bug-followup@freebsd.org, brooks@freebsd.org
Subject: Re: conf/77384 /etc/rc.d/var uses commands from /usr/bin and /usr/sbin when /usr not yet mounted (diskless boot)
Date: Sun, 3 Apr 2005 23:32:30 -0700

 --BOKacYhQ+x31HxR3
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 On Mon, Apr 04, 2005 at 08:10:53AM +0200, Matteo Riondato wrote:
 > Can this change be MFCed ?
 
 It's on my todo list, but I've got a couple more changes I want to make
 in HEAD before I do an MFC of my recent changes to the diskless code.
 
 -- 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
 
 --BOKacYhQ+x31HxR3
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.2.1 (GNU/Linux)
 
 iD8DBQFCUN99XY6L6fI4GtQRAtDnAJ9aZR1Rnq8H2p8APeb7XmjKggx3mwCfTRjD
 fi7LxS7TehwxZOILmoKbkJA=
 =HhYr
 -----END PGP SIGNATURE-----
 
 --BOKacYhQ+x31HxR3--
State-Changed-From-To: patched->closed 
State-Changed-By: brooks 
State-Changed-When: Mon Oct 31 20:01:59 GMT 2005 
State-Changed-Why:  
Realisticly, I'm not likely to do the MFC to 5.x at this point. The 
problems are pretty much fixed in 6.0 and I don't have the time to test 
under 5.x. If you do need this MFCd, please request that the PR be 
reopened. 

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