<div dir="ltr">inline below..<div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 22, 2015 at 9:03 PM, Holger Parplies <span dir="ltr"><<a href="mailto:wfai@parplies.de" target="_blank">wfai@parplies.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
Norberto Meijome wrote on 2015-01-22 12:08:56 +1100 [Source dir for fcopy]:<br>
<span class="">> I want to use fcopy to push a set of initial ssh pub keys to the root user<br>
> in the host being built, i.e., /root/.ssh/authorized_keys<br>
</span>> [...]<br>
<span class="">> 1. I understand FAI/files is the default source dir for fcopy... alas, I<br>
</span>> have FAI=*/data/f*ai/config in /etc/fai/fai.conf<br>
<span class="">><br>
> variables.log in a newly built host shows<br>
</span>> FAI=*/var/lib/fai/*config <<<< why not the value in /etc/fai/fai.conf?<br>
<br>
because it's mounted to /var/lib/fai on the client to be installed.<br></blockquote><div><br></div><div>aha. that makes sense then . must have missed it in the docs...</div><div> </div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
> in the script of my class, I have<br>
> fcopy -i -v -s /data/fai/config/files/ /root/.ssh/authorized_keys<br>
><br>
> ( to avoid the confusion from #1 above)...<br>
<br>
</span>Actually, you are creating the confusion you want to avoid :-). It seems to<br>
be quite common in the IT world that things that "just work" stop just working<br>
when people start "fixing things" in anticipation of a problem :-). As Dirk<br>
suggested, leave out the -s option, and you should be fine.<br>
<br></blockquote><div><br></div><div>:D yeah..but it wasn't working without it either, that's why i added it ;-)</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
In case it's not obvious, if the *script* containing the fcopy command (under<br>
$FAI/scripts) is found, it is more than likely that the referenced files (under<br>
$FAI/files) will be found, too.<br>
<br>
> [...]<br>
<span class="">> But I do have the file :)<br>
> (on my fai-server...) find /data/fai/config/files/root/<br>
</span>   ^^^^^^^^^^^^^^^^<br>
Yes, but the script is not run on the FAI server. On the *client*,<br>
fai-server:/data/fai/config is mounted to /var/lib/fai/config, so that's<br>
where you'll find the files.<br></blockquote><div><br></div><div>^^^^^^ that is the perfect explanation :) i may go through the docs to make sure it's included :) </div><div><br></div><div>thanks so much for the explanation!</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Hope that helps.<br>
<br>
Regards,<br>
Holger<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Norberto 'Beto' Meijome</div></div>
</div></div>