Unattended FreeBSD installation

Freddie Cash fjwcash at gmail.com
Tue Feb 5 23:26:28 UTC 2019


On Tue, Feb 5, 2019 at 3:14 PM Simon Ser <contact at emersion.fr> wrote:

> 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).
>

Have you tried with -t added to the ssh command?  -t will tell ssh to
allocate a pseudo-TTY:

    -t      Force pseudo-terminal allocation.  This can be used to execute
             arbitrary screen-based programs on a remote machine, which can
be
             very useful, e.g. when implementing menu services.  Multiple -t
             options force tty allocation, even if ssh has no local tty.

-- 
Freddie Cash
fjwcash at gmail.com


More information about the freebsd-hackers mailing list