<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Thu, Jan 23, 2025 at 2:15 PM Stuart Green via linux-fai <<a href="mailto:linux-fai@uni-koeln.de">linux-fai@uni-koeln.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg8070608146025570109"><div dir="ltr"><div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:11pt;color:rgb(0,0,0)"><br>
</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:11pt;color:rgb(0,0,0)">
I'm still unsure how to have the hostname set correctly, it keeps getting installed as localhost.</div></div></div></blockquote><div><br></div><div>I had to modify fai-chboot so that it sets an environment variable on the booting system. Find the line that sets the $append variable and add a HOSTNAME assignment to that line:</div><div><br></div><div>$append="append $initrd $bootprot $rootfs HOSTNAME=$host $opt_k $flags $action\n";</div><div><br></div><div> There was a thread about it here: <<a href="https://www.mail-archive.com/linux-fai@uni-koeln.de/msg04809.html">https://www.mail-archive.com/linux-fai@uni-koeln.de/msg04809.html</a>></div></div></div>