Convert seed example to jinja2 and copy in

The pvcbootstrapd system will load this template and write it out for
each host. But keep the nice comments for human-readable use just in
case.
This commit is contained in:
2023-09-01 15:41:57 -04:00
parent ee89c0f5ad
commit 9939e1f42d
3 changed files with 67 additions and 35 deletions

View File

@ -124,6 +124,10 @@ build_pxe() {
cp templates/boot.pxe ${outputdir}/boot.pxe
echo "done."
echo -n "Copying preseed template... "
cp templates/host-preseed.j2 ${outputdir}/host-preseed.j2
echo "done."
sudo chown -R $(whoami) ${outputdir}
sudo chmod -R u+w ${outputdir}