From wera0003@fh-karlsruhe.de  Thu Feb 10 10:26:10 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 D927616A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 10 Feb 2005 10:26:10 +0000 (GMT)
Received: from rz06.fh-karlsruhe.de (rz06.FH-Karlsruhe.DE [193.196.64.6])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 9D58343D1F
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 10 Feb 2005 10:26:09 +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 1CzBWR-000B2M-3p; Thu, 10 Feb 2005 11:26:07 +0100
Received: from wera0003 by localhost with local (Exim 4.44 (FreeBSD))
	id 1CzBWQ-0000Bu-Od; Thu, 10 Feb 2005 11:26:06 +0100
Message-Id: <E1CzBWQ-0000Bu-Od@localhost>
Date: Thu, 10 Feb 2005 11:26:06 +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: awk used in /etc/rc.d/nsswitch when not availiable (diskless boot)
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         77340
>Category:       conf
>Synopsis:       awk used in /etc/rc.d/nsswitch when not availiable (diskless boot)
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    flz
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 10 10:30:18 GMT 2005
>Closed-Date:    Tue Apr 04 14:30:46 GMT 2006
>Last-Modified:  Tue Apr 04 14:30:46 GMT 2006
>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/nsswitch is executed. So there is no awk availiable which
is used in /etc/rc.d/nsswitch. /etc/rc.d/mountcritremote is executed
much later than nsswitch.

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

>Fix:
A workaround it to place a copy of awk in /bin becasue the root filesystem
is already mounted.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-rc 
Responsible-Changed-By: arved 
Responsible-Changed-When: Fri Apr 22 18:27:34 GMT 2005 
Responsible-Changed-Why:  
Over to freebsd-rc mailinglist 

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

From: Florent Thoumie <flz@xbsd.org>
To: bug-followup@freebsd.org
Cc: freebsd-rc@freebsd.org
Subject: Re: conf/77340 - awk used in /etc/rc.d/nsswitch when not available
Date: Mon, 13 Mar 2006 13:41:10 +0000

 Here [1] is a fix, anybody to review/approve it?
 
 [1] http://people.freebsd.org/~flz/local/nsswitch.diff
 
 -- 
 Florent Thoumie
 flz@FreeBSD.org
 FreeBSD Committer
 

From: Brooks Davis <brooks@one-eyed-alien.net>
To: Florent Thoumie <flz@xbsd.org>
Cc: bug-followup@freebsd.org, freebsd-rc@freebsd.org
Subject: Re: conf/77340 - awk used in /etc/rc.d/nsswitch when not available
Date: Mon, 13 Mar 2006 11:37:00 -0800

 --VbJkn9YxBvnuCH5J
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 On Mon, Mar 13, 2006 at 01:41:10PM +0000, Florent Thoumie wrote:
 > Here [1] is a fix, anybody to review/approve it?
 >=20
 > [1] http://people.freebsd.org/~flz/local/nsswitch.diff
 
 I haven't tested it, but it looks fine to me.
 
 -- 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
 
 --VbJkn9YxBvnuCH5J
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.2.1 (GNU/Linux)
 
 iD8DBQFEFcnaXY6L6fI4GtQRAk48AKDhEykn8Bu2ggOzWrd46oaAEkCqmQCg2hSW
 sP3jSWrGHlUM/Ft/BZybWhY=
 =AR0a
 -----END PGP SIGNATURE-----
 
 --VbJkn9YxBvnuCH5J--

From: Florent Thoumie <flz@xbsd.org>
To: Brooks Davis <brooks@one-eyed-alien.net>
Cc: bug-followup@FreeBSD.org
Subject: Re: conf/77340 - awk used in /etc/rc.d/nsswitch when not available
Date: Tue, 14 Mar 2006 11:29:33 +0000

 On Mon, 2006-03-13 at 19:40 +0000, Brooks Davis 
  
 >  I haven't tested it, but it looks fine to me.
 
 I did test a few things:
 - with no /etc/host.conf and no /etc/nsswitch.conf
 - with default /etc/host.conf
 - with default /etc/nsswitch.conf
 - with /etc/nsswitch.conf looking like :
 
 ,------
 | hosts: files [foo=test bar=test baz=test] \
 |   dns
 `------
 
 Does "fine with me" means "go ahead" ?
 
 I guess a MFC after 1 week is ok.
 
 -- 
 Florent Thoumie
 flz@FreeBSD.org
 FreeBSD Committer
 
State-Changed-From-To: open->patched 
State-Changed-By: flz 
State-Changed-When: Mon Mar 20 18:01:03 UTC 2006 
State-Changed-Why:  
I've committed a fix to HEAD. Will MFC to RELENG_[56] in two weeks. 


Responsible-Changed-From-To: freebsd-rc->flz 
Responsible-Changed-By: flz 
Responsible-Changed-When: Mon Mar 20 18:01:03 UTC 2006 
Responsible-Changed-Why:  
Grab. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=77340 
State-Changed-From-To: patched->closed 
State-Changed-By: flz 
State-Changed-When: Tue Apr 4 14:30:15 UTC 2006 
State-Changed-Why:  
Patch committed to HEAD, RELENG_6 and RELENG_5. 

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