From owner-freebsd-questions@FreeBSD.ORG Tue Dec 16 11:36:11 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0256D1065676 for ; Tue, 16 Dec 2008 11:36:11 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [IPv6:2001:4070:101:2::1]) by mx1.freebsd.org (Postfix) with ESMTP id 4CB148FC2D for ; Tue, 16 Dec 2008 11:36:10 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (localhost [IPv6:::1]) by wojtek.tensor.gdynia.pl (8.14.3/8.14.3) with ESMTP id mBGBa1a2061160; Tue, 16 Dec 2008 12:36:01 +0100 (CET) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.14.3/8.14.3/Submit) with ESMTP id mBGBZxM9061157; Tue, 16 Dec 2008 12:36:00 +0100 (CET) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Tue, 16 Dec 2008 12:35:59 +0100 (CET) From: Wojciech Puchar To: Bernard Dugas In-Reply-To: <49478749.2030200@dugas-family.org> Message-ID: <20081216123057.M61117@wojtek.tensor.gdynia.pl> References: <20081216094719.EDCEE1065675@hub.freebsd.org> <49478749.2030200@dugas-family.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-questions@freebsd.org Subject: Re: Optimising pxeboot disk size X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Dec 2008 11:36:11 -0000 > on NFS server. > > Lot of root directories can be shared and mounted in fstab, after booting > process : /usr, /home... > > In current solution, the minimum root directories i had to keep for managing > to boot are : > bin libexec sbin boot etc lib i already did such things but with NetBSD 1.5 for my Xterminal distro. it's simple: mount / readonly, put everything here. in /etc put /etc/rc consisting only #!/bin/sh exec /systemrc in /systemrc put something like that: #!/bin/sh echo -n Mounting workstation config directory... #get your IP or MAC address using ifconfig,grep,cut,awk,how you like #put to to say MYIP /sbin/mount_nfs yournfsserver:/clients/etc/MYIP /etc echo done exec /etc/rc please then add: /tmp, /var/tmp, /var/run, possibly /var/log as tmpfs in fstab OR mount it with per-station directory the same way as /etc I wish it's helpful, doing this doesn't just save space but saves time - you have to upgrade software once. you may like to make /etc-common directory and put most of files there, and symlinks in each station's /etc