Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Dec 2001 17:52:46 -0800 (PST)
From:      Frank Mayhar <frank@exit.com>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/32432: /etc/rc.diskless2 borken in stable.
Message-ID:  <200112020152.fB21qkl42971@realtime.exit.com>

next in thread | raw e-mail | index | archive | help

>Number:         32432
>Category:       bin
>Synopsis:       /etc/rc.diskless2 borken in stable.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Dec 01 18:00:02 PST 2001
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200112020152.fB21qkl42971>