Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Dec 2008 12:35:59 +0100 (CET)
From:      Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl>
To:        Bernard Dugas <bernard@dugas-family.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Optimising pxeboot disk size
Message-ID:  <20081216123057.M61117@wojtek.tensor.gdynia.pl>
In-Reply-To: <49478749.2030200@dugas-family.org>
References:  <20081216094719.EDCEE1065675@hub.freebsd.org> <49478749.2030200@dugas-family.org>

next in thread | previous in thread | raw e-mail | index | archive | help
> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081216123057.M61117>