From frank@exit.com  Sat Dec  1 17:52:52 2001
Return-Path: <frank@exit.com>
Received: from tinker.exit.com (tinker.exit.com [206.223.0.1])
	by hub.freebsd.org (Postfix) with ESMTP id 8AF6F37B41F
	for <FreeBSD-gnats-submit@freebsd.org>; Sat,  1 Dec 2001 17:52:48 -0800 (PST)
Received: from realtime.exit.com (realtime [206.223.0.5])
	by tinker.exit.com (8.11.6/8.11.4) with ESMTP id fB21qkQ35459
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 1 Dec 2001 17:52:46 -0800 (PST)
	(envelope-from frank@exit.com)
Received: (from frank@localhost)
	by realtime.exit.com (8.11.6/8.11.1) id fB21qkl42971;
	Sat, 1 Dec 2001 17:52:46 -0800 (PST)
	(envelope-from frank)
Message-Id: <200112020152.fB21qkl42971@realtime.exit.com>
Date: Sat, 1 Dec 2001 17:52:46 -0800 (PST)
From: Frank Mayhar <frank@exit.com>
Reply-To: Frank Mayhar <frank@exit.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: /etc/rc.diskless2 borken in stable.
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         32432
>Category:       bin
>Synopsis:       /etc/rc.diskless2 borken in stable.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Dec 01 18:00:02 PST 2001
>Closed-Date:    Sun Apr 07 06:35:20 PDT 2002
>Last-Modified:  Sun Apr 07 06:35:20 PDT 2002
>Originator:     Frank Mayhar
>Release:        FreeBSD 4.4-STABLE i386
>Organization:
Exit Consulting
>Environment:
System: FreeBSD realtime.exit.com 4.4-STABLE FreeBSD 4.4-STABLE #0: Sat Nov 10 16:05:26 PST 2001 frank@realtime.exit.com:/usr/src/sys/compile/REALTIME i386


>Description:
	/etc/rc.diskless2 does a mount -a only _after_ trying to use
	/usr/sbin/mtree and /usr/bin/awk.  Doesn't work vewwy well.
>How-To-Repeat:
	Boot -stable diskless.
>Fix:
Patch follows:
Index: rc.diskless2
===================================================================
RCS file: /cvs/repos/src/etc/rc.diskless2,v
retrieving revision 1.5.2.9
diff -u -r1.5.2.9 rc.diskless2
--- rc.diskless2	2 Nov 2001 23:20:43 -0000	1.5.2.9
+++ rc.diskless2	2 Dec 2001 01:52:35 -0000
@@ -55,6 +55,8 @@
 echo "+++ mfs_mount of /var"
 mount_md ${varsize:=65536} /var 1
 
+mount -a       # mtree and awk (and chown and chgrp) are in /usr
+
 echo "+++ populate /var using /etc/mtree/BSD.var.dist"
 /usr/sbin/mtree -deU -f /etc/mtree/BSD.var.dist -p /var
 
@@ -66,8 +68,6 @@
 
 echo "+++ create lastlog"
 /usr/bin/touch /var/log/lastlog
-
-mount -a       # chown and chgrp are in /usr
 
 #
 # XXX make sure to create one dir for each printer as requested by lpd
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: asmodai 
State-Changed-When: Sun Apr 7 06:34:37 PDT 2002 
State-Changed-Why:  
This has been fixed on my 4.5-STABLE system at least. 

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