/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.
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 There have been a few commits to diskless2. Is this still a problem?
> 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.
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 Feedback has been requested and received; throw this PR back open.
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)
State Changed From-To: open->closed This file is gone in recent versions of FreeBSD.