From owner-freebsd-bugs Sat Dec 1 18: 0:11 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 32DAE37B416 for ; Sat, 1 Dec 2001 18:00:02 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id fB2202t45306; Sat, 1 Dec 2001 18:00:02 -0800 (PST) (envelope-from gnats) Received: from tinker.exit.com (tinker.exit.com [206.223.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 8AF6F37B41F for ; 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 ; 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 Reply-To: Frank Mayhar To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: bin/32432: /etc/rc.diskless2 borken in stable. Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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