<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Greetings<br>
<br>
I admit to being a bit confused by maybe conflicting information.
My topic is the creation and use of the variable FAI_CONFIG_SRC. I
became interested while learning the use of fai-chboot and proper
editing of /etc/fai/nfsroot.conf and /etc/fai/fai.conf. <br>
<br>
So the answers should clear my thinking, and below the questions is
what I see on my faiserver:<br>
<ul>
<li>
Is the FAI WIKI VariableTable correct? </li>
<li>
Should the source be <u>/etc/fai/fai.conf</u> instead of <u>fai-make-nfsroot</u>?
Perhaps a dual source?</li>
<li>
Should the comment be removed -- or changed?</li>
<li>
Perhaps the files are vacant because my setting is identical to
the default?</li>
<li>
Should fai-chboot use /etc/fai/fai.conf (or
$NFSROOT/etc/fai/fai.conf) for a default setting, and the -u
parameter be used to provide an override only if needed?</li>
<li>
Should fai-chboot be added into the "used by" list on the
Variables table?</li>
</ul>
<br>
<br>
In the FAI WIKI Variables page I found the following:<br>
Variable typical
value source used
by comment<br>
<table class="wikitable sortable jquery-tablesorter" border="1">
<tbody>
<tr>
<td>FAI_CONFIG_SRC</td>
<td><br>
</td>
<td>nfs://faiserver/srv/fai/config</td>
<td><a
href="http://wiki.fai-project.org/wiki/Fai-make-nfsroot"
title="Fai-make-nfsroot">fai-make-nfsroot</a></td>
<td>get-config-dir</td>
<td> m-f-n writes its value to $NFSROOT/etc/fai/fai.conf
</td>
</tr>
</tbody>
</table>
<br>
I looked to see where m-f-n would write FAI_CONF_SRC and found
nothing. See below the three files that might carry the output
actually do not:<br>
===============================================================<br>
<a class="moz-txt-link-abbreviated" href="mailto:root@tug:/srv/tftp/fai/pxelinux.cfg#">root@tug:/srv/tftp/fai/pxelinux.cfg#</a> more
/srv/fai/nfsroot*/etc/fai/fai.conf<br>
::::::::::::::<br>
/srv/fai/nfsroot-amd64/etc/fai/fai.conf<br>
::::::::::::::<br>
# See fai.conf(5) for detailed information.<br>
<br>
# Account for saving log files and calling fai-chboot.<br>
#LOGUSER=fai<br>
<br>
# URL to access the fai config space<br>
# If undefined, use default nfs://<install
server>/$FAI_CONFIGDIR<br>
#FAI_CONFIG_SRC=nfs://yourservername/path/to/config/space<br>
<br>
::::::::::::::<br>
/srv/fai/nfsroot/etc/fai/fai.conf<br>
::::::::::::::<br>
# See fai.conf(5) for detailed information.<br>
<br>
# Account for saving log files and calling fai-chboot.<br>
#LOGUSER=fai<br>
<br>
# URL to access the fai config space<br>
#FAI_CONFIG_SRC=nfs://yourservername/path/to/config/space<br>
::::::::::::::<br>
/srv/fai/nfsroot-i386/etc/fai/fai.conf<br>
::::::::::::::<br>
# See fai.conf(5) for detailed information.<br>
<br>
# Account for saving log files and calling fai-chboot.<br>
#LOGUSER=fai<br>
<br>
# URL to access the fai config space<br>
# If undefined, use default nfs://<install
server>/$FAI_CONFIGDIR<br>
#FAI_CONFIG_SRC=nfs://yourservername/path/to/config/space<br>
<br>
<a class="moz-txt-link-abbreviated" href="mailto:root@tug:/srv/tftp/fai/pxelinux.cfg#">root@tug:/srv/tftp/fai/pxelinux.cfg#</a> <br>
==============================================================<br>
<br>
I remember setting the variable in /etc/fai/fai.conf, so I looked
for occurrences of the variable and found my setting and a bunch of
grub settings below:<br>
==============================================================<br>
<a class="moz-txt-link-abbreviated" href="mailto:root@tug:/srv/tftp/fai/pxelinux.cfg#">root@tug:/srv/tftp/fai/pxelinux.cfg#</a> grep -r FAI_CONFIG_SRC /etc/fai<br>
/etc/fai/grub.cfg: linux /boot/vmlinuz boot=live
FAI_FLAGS="verbose,createvt" FAI_ACTION=install hostname=demohost
FAI_CONFIG_SRC=<a class="moz-txt-link-freetext" href="file:///var/lib/fai/config">file:///var/lib/fai/config</a><br>
/etc/fai/grub.cfg: linux /boot/vmlinuz boot=live
FAI_FLAGS="verbose,createvt" FAI_ACTION=install hostname=xfcehost
FAI_CONFIG_SRC=<a class="moz-txt-link-freetext" href="file:///var/lib/fai/config">file:///var/lib/fai/config</a><br>
/etc/fai/grub.cfg: linux /boot/vmlinuz boot=live
FAI_FLAGS="verbose,createvt" FAI_ACTION=install hostname=gnomehost
FAI_CONFIG_SRC=<a class="moz-txt-link-freetext" href="file:///var/lib/fai/config">file:///var/lib/fai/config</a><br>
/etc/fai/grub.cfg: linux /boot/vmlinuz boot=live
FAI_FLAGS="verbose,createvt" FAI_ACTION=install hostname=faiserver
FAI_CONFIG_SRC=<a class="moz-txt-link-freetext" href="file:///var/lib/fai/config">file:///var/lib/fai/config</a><br>
/etc/fai/grub.cfg: linux /boot/vmlinuz boot=live
FAI_FLAGS="verbose,createvt" FAI_ACTION=sysinfo hostname=demohost
FAI_CONFIG_SRC=<a class="moz-txt-link-freetext" href="file:///var/lib/fai/config">file:///var/lib/fai/config</a><br>
/etc/fai/fai.conf:# FAI_CONFIG_SRC: how to access the fai config
space<br>
/etc/fai/fai.conf:FAI_CONFIG_SRC=nfs://192.168.1.10/srv/fai/config<br>
<a class="moz-txt-link-abbreviated" href="mailto:root@tug:/srv/tftp/fai/pxelinux.cfg#">root@tug:/srv/tftp/fai/pxelinux.cfg#</a> <br>
===============================================================<br>
<br>
Thanks in advance for any help!<br>
Skip<br>
<br>
<a href="http://wiki.fai-project.org/wiki/Fai-make-nfsroot"
title="Fai-make-nfsroot"></a><br>
</body>
</html>