From owner-freebsd-current@FreeBSD.ORG Sun Oct 17 03:45:12 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 443F716A4F9 for ; Sun, 17 Oct 2004 03:45:12 +0000 (GMT) Received: from node15.coopprint.com (node15.cooperativeprinting.com [208.4.77.15]) by mx1.FreeBSD.org (Postfix) with SMTP id AC78D43D1D for ; Sun, 17 Oct 2004 03:45:11 +0000 (GMT) (envelope-from ryans@gamersimpact.com) Received: (qmail 67578 invoked by uid 0); 17 Oct 2004 03:44:10 -0000 Received: from unknown (HELO ?192.168.0.5?) (63.231.165.205) by node15.coopprint.com with SMTP; 17 Oct 2004 03:44:10 -0000 Message-ID: <4171EACE.4020602@gamersimpact.com> Date: Sat, 16 Oct 2004 22:45:18 -0500 From: Ryan Sommers User-Agent: Mozilla Thunderbird 0.7.3 (Windows/20040803) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Rob References: <4171D3AE.8010601@yahoo.com> In-Reply-To: <4171D3AE.8010601@yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: Sun, 17 Oct 2004 03:45:12 -0000 Rob wrote: > 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. The /var memory disk needs to be populated with a base structure. This is handled in initdiskless by templates (see /etc/rc.d/initdiskless:285). You can either have them as subdirectories in your /conf/ or as dir.cpio.gz cpio'gzip archives that are then extracted. -- Ryan Sommers ryans@gamersimpact.com