Unattended FreeBSD installation

Simon Ser contact at emersion.fr
Tue Feb 5 23:12:45 UTC 2019


Hi all,

For the purposes of a CI service [1], I want to write a script that
generates a fresh qcow2 FreeBSD image. So far I've been using
bsdinstall(8) and this has been working well when testing locally [2].
However this doesn't work when run from SSH because bsdinstall(8) uses
dialog(1), which requires a TTY (or fails).

I've been wondering: you offer qcow2 images available for download on
your website, but how are these generated? I don't think I can use these
directly since I need to enable sshd, but I could probably re-use your
image generation script.

If it's not possible to use the same script, do you have suggestions to
make it work?

Thanks,

[1]: https://sr.ht
[2]: https://git.sr.ht/~sircmpwn/builds.sr.ht/tree/master/images/freebsd/genimg

--
Simon Ser
https://emersion.fr




More information about the freebsd-hackers mailing list