From owner-freebsd-bugs Sun Aug 19 3:50: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 2F42237B410 for ; Sun, 19 Aug 2001 03:50:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f7JAo2l53924; Sun, 19 Aug 2001 03:50:02 -0700 (PDT) (envelope-from gnats) Received: from arg1.demon.co.uk (arg1.demon.co.uk [194.222.34.166]) by hub.freebsd.org (Postfix) with ESMTP id 744B537B412 for ; Sun, 19 Aug 2001 03:49:47 -0700 (PDT) (envelope-from arg@arg1.demon.co.uk) Received: by arg1.demon.co.uk (Postfix, from userid 300) id DE8D69B13; Sun, 19 Aug 2001 11:49:44 +0100 (BST) Message-Id: <20010819104944.DE8D69B13@arg1.demon.co.uk> Date: Sun, 19 Aug 2001 11:49:44 +0100 (BST) From: Andrew Gordon Reply-To: Andrew Gordon To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: conf/29870: rc.diskless2 uses /usr/sbin/mtree before /usr mounted 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: 29870 >Category: conf >Synopsis: rc.diskless2 uses /usr/sbin/mtree before /usr mounted >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Aug 19 03:50:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Andrew Gordon >Release: FreeBSD 4.4-PRERELEASE i386 >Organization: >Environment: System: FreeBSD server.arg.sj.co.uk 4.4-PRERELEASE FreeBSD 4.4-PRERELEASE #3: Sun Aug 12 20:42:57 BST 2001 arg@server.arg.sj.co.uk:/usr/src/sys/compile/SERVER i386 Still present in 4.4-RC as at 17th August >Description: /etc/rc.diskless2 already mounts /usr in order to use tools in /usr/bin etc. However, some new lines have been added _above_ the 'mount -a' which use things like /usr/sbin/mtree and /usr/bin/touch. >How-To-Repeat: Boot a standard diskless system where the root and /usr filesystems are separate mounts. >Fix: Index: rc.diskless2 =================================================================== RCS file: /repository/src/etc/rc.diskless2,v retrieving revision 1.5.2.8 diff -u -r1.5.2.8 rc.diskless2 --- rc.diskless2 2001/07/24 09:49:37 1.5.2.8 +++ rc.diskless2 2001/08/19 10:47:51 @@ -55,6 +55,8 @@ echo "+++ mfs_mount of /var" mount_md ${varsize:=65536} /var 1 +mount -a # mtree, 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 @@ -63,8 +65,6 @@ if [ -n "$LOGFILES" ]; then /usr/bin/touch $LOGFILES fi - -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