Optimising pxeboot disk size
wojtek at wojtek.tensor.gdynia.pl
Tue Dec 16 03:36:11 PST 2008
> 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.
mount / readonly, put everything here.
in /etc put /etc/rc consisting only
in /systemrc put something like that:
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
please then add:
/tmp, /var/tmp, /var/run, possibly /var/log as tmpfs in fstab
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
More information about the freebsd-questions