From arg@arg1.demon.co.uk  Sun Aug 19 03:49:48 2001
Return-Path: <arg@arg1.demon.co.uk>
Received: from arg1.demon.co.uk (arg1.demon.co.uk [194.222.34.166])
	by hub.freebsd.org (Postfix) with ESMTP id 744B537B412
	for <FreeBSD-gnats-submit@freebsd.org>; 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 <arg@arg1.demon.co.uk>
Reply-To: Andrew Gordon <arg@arg1.demon.co.uk>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: rc.diskless2 uses /usr/sbin/mtree before /usr mounted
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>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:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug 19 03:50:01 PDT 2001
>Closed-Date:    Wed Mar 30 00:17:26 GMT 2005
>Last-Modified:  Wed Mar 30 00:17:26 GMT 2005
>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:

From: Jean-Francois Dockes <jean-francois.dockes@wanadoo.fr>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: conf/29870: rc.diskless2 uses /usr/sbin/mtree before /usr mounted
Date: Wed, 10 Oct 2001 17:14:18 +0200

 In addition to the proposed fix, it would be a nice thing to add an 
 'mkdir /var/db' before the 'mount -a' so that mount does not complain 
 about being unable to access /var/db/mounttab
 
 -- 
 Jean-Francois Dockes                    jean-francois.dockes@wanadoo.fr
 
State-Changed-From-To: open->feedback 
State-Changed-By: schweikh 
State-Changed-When: Mon Aug 12 14:01:28 PDT 2002 
State-Changed-Why:  
There have been a few commits to diskless2. Is this still a problem? 

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

From: Andrew Gordon <arg-bsd@arg1.demon.co.uk>
To: Jens Schweikhardt <schweikh@FreeBSD.org>
Cc: <arg@arg1.demon.co.uk>, <freebsd-bugs@FreeBSD.org>
Subject: Re: conf/29870: rc.diskless2 uses /usr/sbin/mtree before /usr mounted
Date: Thu, 22 Aug 2002 23:28:32 +0100 (BST)

 > Synopsis: rc.diskless2 uses /usr/sbin/mtree before /usr mounted
 >
 > State-Changed-From-To: open->feedback
 > State-Changed-By: schweikh
 > State-Changed-When: Mon Aug 12 14:01:28 PDT 2002
 > State-Changed-Why:
 > There have been a few commits to diskless2. Is this still a problem?
 >
 > http://www.freebsd.org/cgi/query-pr.cgi?pr=29870
 
 
 The problem that I originally reported is fixed - I've just set up a test
 system from clean sources and it works OK.
 
 However, the (less serious) problem about /var/db added to the PR by
 jean-francois.dockes@wanadoo.fr  is still present.

From: Giorgos Keramidas <keramida@FreeBSD.org>
To: Andrew Gordon <arg@arg1.demon.co.uk>
Cc: bug-followup@FreeBSD.org
Subject: Re: conf/29870: rc.diskless2 uses /usr/sbin/mtree before /usr mounted
Date: Thu, 29 Aug 2002 00:54:19 +0300

 Adding to audit trail:
 :
 : Message-Id: <15719.12565.752164.122766@hautmedoc.dockes.com>
 : Date: Sat, 24 Aug 2002 09:09:09 +0200
 : From: Jean-Francois Dockes <jean-francois.dockes@wanadoo.fr>
 : Subject: pending/41964: Re: PR 29870
 :
 : Jens Schweikhardt writes:
 : > Is it correct that /var/db should even be created before the mount_md of
 : > /var and then maybe once again? Or does mount_md not complain when it
 : > can't write /var/db/mounttab? I don't have a diskless machine so it's
 : > next to impossible for me to test.
 :
 : mounttab seems to be gone for good. The last complaint message I see while
 : booting diskless is about /var/spool/clientmqueue. There should be an 
 : '/usr/sbin/mtree -deU -f /etc/mtree/BSD.sendmail.dist -p /var' added to
 : rc.diskless2 in addition to BSD.var.dist
 :
 : While you are at it, could someone please close pr conf/31200 which was
 : fixed by revision 1.2.2.2 of /usr/share/examples/diskless/clone_root  and
 : revision 1.5.2.7 of /etc/rc.diskless1. (added /conf/base/etc to be copied
 : before /conf/default/etc).
State-Changed-From-To: feedback->open 
State-Changed-By: ceri 
State-Changed-When: Sun Jun 8 10:57:19 PDT 2003 
State-Changed-Why:  
Feedback has been requested and received; throw this PR back open. 

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

From: Matteo Riondato <rionda@gufi.org>
To: freebsd-gnats-submit@freebsd.org
Cc:  
Subject: Re: conf/29870: rc.diskless2 uses /usr/sbin/mtree before /usr mounted
Date: Tue, 29 Mar 2005 21:12:14 +0200

 --yhqQ34TVR4fE8mPU
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 This PR can be closed, as FreeBSD no longer use rc.diskless2.
 Best Regards
 
 --=20
 Rionda aka Matteo Riondato
 Disinformato per default
 G.U.F.I. Staff Member (http://www.gufi.org)
 FreeSBIE Developer (http://www.freesbie.org)
 
 --yhqQ34TVR4fE8mPU
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.0 (FreeBSD)
 
 iD8DBQFCSaiN2Mp4pR7Fa+wRAqh1AKDRivsSEY/8pc+TTJAwfr3MLgyvpACeL9Ga
 N7J2dQyleZE4PKcR2uxi2Pc=
 =GsHM
 -----END PGP SIGNATURE-----
 
 --yhqQ34TVR4fE8mPU--
State-Changed-From-To: open->closed 
State-Changed-By: linimon 
State-Changed-When: Wed Mar 30 00:17:02 GMT 2005 
State-Changed-Why:  
This file is gone in recent versions of FreeBSD. 

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