Bug 29870

Summary: rc.diskless2 uses /usr/sbin/mtree before /usr mounted
Product: Base System Reporter: arg <arg>
Component: confAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.4-PRERELEASE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description arg 2001-08-19 11:50:01 UTC
	/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.
Comment 1 Jean-Francois Dockes 2001-10-10 16:14:18 UTC
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
Comment 2 Jens Schweikhardt freebsd_committer freebsd_triage 2002-08-12 22:01:28 UTC
State Changed
From-To: open->feedback

There have been a few commits to diskless2. Is this still a problem?
Comment 3 arg-bsd 2002-08-22 23:28:32 UTC
> 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.
Comment 4 Giorgos Keramidas freebsd_committer freebsd_triage 2002-08-28 22:54:19 UTC
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).
Comment 5 Ceri Davies freebsd_committer freebsd_triage 2003-06-08 18:57:19 UTC
State Changed
From-To: feedback->open

Feedback has been requested and received; throw this PR back open.
Comment 6 Matteo Riondato 2005-03-29 20:12:14 UTC
This PR can be closed, as FreeBSD no longer use rc.diskless2.
Best Regards

-- 
Rionda aka Matteo Riondato
Disinformato per default
G.U.F.I. Staff Member (http://www.gufi.org)
FreeSBIE Developer (http://www.freesbie.org)
Comment 7 Mark Linimon freebsd_committer freebsd_triage 2005-03-30 01:17:02 UTC
State Changed
From-To: open->closed

This file is gone in recent versions of FreeBSD.