]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - share/examples/diskless/ME
unfinished sblive driver, playback/mixer only for now - not enabled in
[FreeBSD/FreeBSD.git] / share / examples / diskless / ME
1
2 When templating, /conf/ME is typically a softlink to
3 /conf/<appropriate-machine>.  When doing a diskless boot, /conf/ME is
4 retargeted by /etc/rc.diskless1 from pointing to the server to pointing
5 to the client's directory, /conf/<ip-address-of-client>.  The retargeting
6 is accomplished through an MFS -o union mount.
7
8 When templating, this softlink should be different for each machine.
9 When doing a diskless boot, this softlink is typically part of the / NFS
10 mount from the server and points to the server's conf directory, but gets
11 retargeted during the /etc/rc.diskless1 phase.
12
13 System-wide configuration files must generally be targeted through /conf/ME.
14 For example, your /etc/rc.conf.local should become a softlink to
15 /conf/ME/rc.conf.local and your real rc.conf.local should go into the 
16 appropriate /conf/<appropriate-machine> directory.  This is also true of
17 /etc/rc.local, /etc/fstab, /etc/syslog.conf, /etc/ccd.conf, /etc/ipfw.conf,
18 /etc/motd, /etc/resolv.conf, and possibly even /etc/ttys ( if you want
19 to start an X session up on boot on certain of your machines ).
20
21 When templating, you duplicate your / and /usr partitions on each machine's
22 local disk from a single master ( assuming /var and /home reside elsewhere ),
23 EXCEPT for the /conf/ME softlink.  The /conf/ME softlink is the only thing
24 on / that should be different for each machine.
25
26 There are often categories of configuration files.  For example, all of your
27 shell machines may use one resolv.conf while all of your mail proxies may
28 use another.  Configuration files can be categorized fairly easily through
29 /conf/HT.<category> directories.  You put the actual configuration file in
30 /conf/HT.<category> and make a softlink from
31 /conf/ME/<appropriate-machines>/config-file to "../HT.<category/config-file".
32 This means that access to these files tends to run through more then one
33 softlink.  The advantage is that for all the complexity of your /conf
34 directory hierarchy, most of your common config files exist in only one place
35 in reality.
36
37