X-Git-Url: https://iankelling.org/git/?p=automated-distro-installer;a=blobdiff_plain;f=faiserver-setup;h=e1f744bcec9045c1a7c02e9285fadf21371de521;hp=cf6b984e1837760d57d815f1c60dc2d7f0a5b306;hb=bfd6bbd3a188aac6871f8b5e1116a0979682d52b;hpb=f67d4b719356595b424aa3cd358abc79426583c5 diff --git a/faiserver-setup b/faiserver-setup index cf6b984..e1f744b 100755 --- a/faiserver-setup +++ b/faiserver-setup @@ -155,7 +155,7 @@ EOF ### begin setup security repo ### case $base in - stretch|buster|bullseye) + stretch|buster) cat >>/etc/fai/apt/sources.list <>/srv/fai/nfsroot/root/.ssh/known_hosts done +# make it the root because pxe-kexec only looks there. +# It wouldn't be too hard to change if we needed. +# We could also just dump things in /srv/tftp, but fai +# has some defaults, which I don't even use, which expect +# the other directory, so it's kind of a tossup, whatever. +sed -ri 's,^ *(TFTP_DIRECTORY=).*,\1"/srv/tftp/fai",' /etc/default/tftpd-hpa +systemctl restart tftpd-hpa + # serial console # mainly from