From owner-freebsd-current@FreeBSD.ORG Mon Oct 18 14:52:52 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 615FD16A4CE for ; Mon, 18 Oct 2004 14:52:52 +0000 (GMT) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3DBB643D2D for ; Mon, 18 Oct 2004 14:52:52 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.13.0/8.13.0) with ESMTP id i9IErNWQ016138; Mon, 18 Oct 2004 07:53:23 -0700 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id i9IErN94016137; Mon, 18 Oct 2004 07:53:23 -0700 Date: Mon, 18 Oct 2004 07:53:23 -0700 From: Brooks Davis To: Ryan Sommers Message-ID: <20041018145323.GA15609@odin.ac.hmc.edu> References: <4171D3AE.8010601@yahoo.com> <4171EACE.4020602@gamersimpact.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="n8g4imXOkfNTN/H1" Content-Disposition: inline In-Reply-To: <4171EACE.4020602@gamersimpact.com> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new X-Spam-Status: No, hits=0.2 required=8.0 tests=PLING_QUERY autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on odin.ac.hmc.edu cc: Rob cc: freebsd-current@freebsd.org Subject: Re: 5.3-Beta7 diskless boot: it boots but has empty /var (on /dev/md1) !? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Oct 2004 14:52:52 -0000 --n8g4imXOkfNTN/H1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Oct 16, 2004 at 10:45:18PM -0500, Ryan Sommers wrote: > Rob wrote: >=20 > >However, on the diskless PC, /var is on a memory > >disk, but that directory is completely empty: > > > > disklessPC# ls -a /var > > . .. .snap > > > > disklessPC# mount > > 192.168.123.254:/ on / (nfs, read-only) > > devfs on /dev (devfs, local) > > /dev/md0 on /etc (ufs, local, soft-updates) > > procfs on /proc (procfs, local) > > /dev/md1 on /var (ufs, local, soft-updates) > > 192.168.123.254:/usr on /usr (nfs, read-only) > > 192.168.123.254:/home on /home (nfs) > > /dev/md2 on /tmp (ufs, local, soft-updates) > > > >This has serious consequences on the diskless PC. > >For example, sshd cannot start because /var/empty > >is not there. There is no information in /var/run, > >/var/log etc. > > > >Is something missing in the /etc/rc.d/initdiskless script, > >or have I forgotten something? > > > >Thanks, > >Rob. >=20 > The /var memory disk needs to be populated with a base structure. This=20 > is handled in initdiskless by templates (see=20 > /etc/rc.d/initdiskless:285). You can either have them as subdirectories= =20 > in your /conf/ or as dir.cpio.gz cpio'gzip archives that are then extract= ed. /var is typically expected to be created by /etc/rc.d/var not initdiskless. However, if you want to do that, you need mtree, newsyslog, and touch which are in /usr so /usr needs to be mounted. Using a unified root without all this separate mounting of /usr nonsense we currently document will make this all work and save you main in many cases. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --n8g4imXOkfNTN/H1 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFBc9jiXY6L6fI4GtQRAtYWAJoDO8t5DnBxBNUhq+lKO0ndYKUHqwCeLqSd kZ/jQs8jifZ3cjsPhKWIwj0= =BXA4 -----END PGP SIGNATURE----- --n8g4imXOkfNTN/H1--